Class: IronCache::Item
- Inherits:
-
ResponseBase
- Object
- ResponseBase
- IronCache::Item
- Defined in:
- lib/iron_cache/items.rb
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(messages, res) ⇒ Item
constructor
A new instance of Item.
- #key ⇒ Object
- #value ⇒ Object
Methods inherited from ResponseBase
Constructor Details
#initialize(messages, res) ⇒ Item
Returns a new instance of Item.
96 97 98 99 |
# File 'lib/iron_cache/items.rb', line 96 def initialize(, res) super(res) @messages = end |
Instance Method Details
#delete ⇒ Object
109 110 111 |
# File 'lib/iron_cache/items.rb', line 109 def delete @messages.delete(self.key, :cache_name => raw['cache']) end |
#key ⇒ Object
101 102 103 |
# File 'lib/iron_cache/items.rb', line 101 def key raw["key"] end |
#value ⇒ Object
105 106 107 |
# File 'lib/iron_cache/items.rb', line 105 def value raw["value"] end |