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.
93 94 95 96 |
# File 'lib/iron_cache/items.rb', line 93 def initialize(, res) super(res) @messages = end |
Instance Method Details
#delete ⇒ Object
106 107 108 |
# File 'lib/iron_cache/items.rb', line 106 def delete @messages.delete(self.key) end |
#key ⇒ Object
98 99 100 |
# File 'lib/iron_cache/items.rb', line 98 def key raw["key"] end |
#value ⇒ Object
102 103 104 |
# File 'lib/iron_cache/items.rb', line 102 def value raw["value"] end |