Class: IODResponse

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

Direct Known Subclasses

IODAsyncResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject

Returns the value of attribute response.



20
21
22
# File 'lib/iodruby.rb', line 20

def response
  @response
end

Instance Method Details

#jsonObject



28
29
30
# File 'lib/iodruby.rb', line 28

def json()
  @response.body
end