Class: IronCache::ResponseBase

Inherits:
Object
  • Object
show all
Defined in:
lib/iron_cache/items.rb

Direct Known Subclasses

Item

Instance Method Summary collapse

Constructor Details

#initialize(res) ⇒ ResponseBase

Returns a new instance of ResponseBase.



69
70
71
# File 'lib/iron_cache/items.rb', line 69

def initialize(res)
  @data = res
end

Instance Method Details

#[](key) ⇒ Object



77
78
79
# File 'lib/iron_cache/items.rb', line 77

def [](key)
  raw[key]
end

#msgObject

def id

raw["id"]

end



85
86
87
# File 'lib/iron_cache/items.rb', line 85

def msg
  raw["msg"]
end

#rawObject



73
74
75
# File 'lib/iron_cache/items.rb', line 73

def raw
  @data
end