Class: Hook::Keys
- Inherits:
-
Object
- Object
- Hook::Keys
- Defined in:
- lib/hook-client/keys.rb
Instance Method Summary collapse
-
#get(key) ⇒ Object
Return the unserialized value.
-
#initialize(options = {}) ⇒ Keys
constructor
A new instance of Keys.
-
#set(key, value) ⇒ Object
Store serialized value.
Constructor Details
Instance Method Details
#get(key) ⇒ Object
Return the unserialized value
12 13 14 |
# File 'lib/hook-client/keys.rb', line 12 def get(key) @client.get("key/#{key}") end |
#set(key, value) ⇒ Object
Store serialized value
21 22 23 |
# File 'lib/hook-client/keys.rb', line 21 def set(key, value) @client.post("key/#{key}", { :value => value }); end |