Skip to content

Commit

Permalink
Clean up WebHook class.
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerhunt committed Nov 13, 2012
1 parent c418195 commit b094af6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/brewery_db/web_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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.