Class: IODResponse
- Inherits:
-
Object
- Object
- IODResponse
- Defined in:
- lib/iodruby.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ IODResponse
constructor
A new instance of IODResponse.
- #json ⇒ Object
Constructor Details
#initialize(response) ⇒ IODResponse
Returns a new instance of IODResponse.
22 23 24 25 26 |
# File 'lib/iodruby.rb', line 22 def initialize(response) #@query=query @response=response end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
20 21 22 |
# File 'lib/iodruby.rb', line 20 def response @response end |
Instance Method Details
#json ⇒ Object
28 29 30 |
# File 'lib/iodruby.rb', line 28 def json() @response.body end |