Class: Wdt::Response
- Inherits:
-
Object
- Object
- Wdt::Response
- Defined in:
- lib/wdt/response.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
Instance Method Summary collapse
-
#initialize(response_hash) ⇒ Response
constructor
A new instance of Response.
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. = response_hash["message"] self.raw_data = response_hash end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/wdt/response.rb', line 3 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/wdt/response.rb', line 3 def @message end |
#raw_data ⇒ Object
Returns the value of attribute raw_data.
3 4 5 |
# File 'lib/wdt/response.rb', line 3 def raw_data @raw_data end |