Class: IronCache::ResponseBase
- Inherits:
-
Object
- Object
- IronCache::ResponseBase
- Defined in:
- lib/iron_cache/items.rb
Direct Known Subclasses
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(res) ⇒ ResponseBase
constructor
A new instance of ResponseBase.
-
#msg ⇒ Object
def id raw end.
- #raw ⇒ Object
Constructor Details
#initialize(res) ⇒ ResponseBase
Returns a new instance of ResponseBase.
72 73 74 |
# File 'lib/iron_cache/items.rb', line 72 def initialize(res) @data = res end |
Instance Method Details
#[](key) ⇒ Object
80 81 82 |
# File 'lib/iron_cache/items.rb', line 80 def [](key) raw[key] end |
#msg ⇒ Object
def id
raw["id"]
end
88 89 90 |
# File 'lib/iron_cache/items.rb', line 88 def msg raw["msg"] end |
#raw ⇒ Object
76 77 78 |
# File 'lib/iron_cache/items.rb', line 76 def raw @data end |