Class: IronMQ::ResponseBase

Inherits:
Object
  • Object
show all
Defined in:
lib/iron_mq/messages.rb

Direct Known Subclasses

Message

Instance Method Summary collapse

Constructor Details

#initialize(res) ⇒ ResponseBase

Returns a new instance of ResponseBase.



77
78
79
# File 'lib/iron_mq/messages.rb', line 77

def initialize(res)
  @data = res
end

Instance Method Details

#[](key) ⇒ Object



85
86
87
# File 'lib/iron_mq/messages.rb', line 85

def [](key)
  raw[key]
end

#idObject



89
90
91
# File 'lib/iron_mq/messages.rb', line 89

def id
  raw["id"]
end

#msgObject



93
94
95
# File 'lib/iron_mq/messages.rb', line 93

def msg
  raw["msg"]
end

#rawObject



81
82
83
# File 'lib/iron_mq/messages.rb', line 81

def raw
  @data
end