Permalink
Browse files

Clean up WebHook class.

  • Loading branch information...
1 parent c418195 commit b094af6f14d9c0e096e7881770ec7bb46461a2b3 @tylerhunt committed Nov 13, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 lib/brewery_db/web_hook.rb
View
12 lib/brewery_db/web_hook.rb
@@ -2,9 +2,13 @@
module BreweryDB
class WebHook
-
- attr_reader :action, :attribute, :attribute_id, :key, :nonce, :sub_action,
- :timestamp
+ attr_reader :action
+ attr_reader :attribute
+ attr_reader :attribute_id
+ attr_reader :key
+ attr_reader :nonce
+ attr_reader :sub_action
+ attr_reader :timestamp
def initialize(args)
@action = args[:action]
@@ -24,7 +28,5 @@ def hash(api_key)
Digest::SHA1.hexdigest("#{api_key}#{nonce}")
end
private :hash
-
end
end
-

0 comments on commit b094af6

Please sign in to comment.