Class: LOL::Api::Response
- Inherits:
-
Object
- Object
- LOL::Api::Response
- Defined in:
- lib/lol/api/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(status, body) ⇒ Response
Returns a new instance of Response.
11 12 13 |
# File 'lib/lol/api/response.rb', line 11 def initialize(status, body) @status, @body = status, json(body) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
9 10 11 |
# File 'lib/lol/api/response.rb', line 9 def body @body end |
#status ⇒ Object
Returns the value of attribute status.
9 10 11 |
# File 'lib/lol/api/response.rb', line 9 def status @status end |