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.


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

#msgObject

def id

raw["id"]

end


88
89
90
# File 'lib/iron_cache/items.rb', line 88

def msg
  raw["msg"]
end

#rawObject


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

def raw
  @data
end