Class: Wdt::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/wdt/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_hash) ⇒ Response

Returns a new instance of Response.



5
6
7
8
9
# File 'lib/wdt/response.rb', line 5

def initialize(response_hash)
  self.code    = response_hash["code"]
  self.message = response_hash["message"]
  self.raw_data = response_hash
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/wdt/response.rb', line 3

def code
  @code
end

#messageObject

Returns the value of attribute message.



3
4
5
# File 'lib/wdt/response.rb', line 3

def message
  @message
end

#raw_dataObject

Returns the value of attribute raw_data.



3
4
5
# File 'lib/wdt/response.rb', line 3

def raw_data
  @raw_data
end