Class: IODAsyncResponse

Inherits:
IODResponse show all
Defined in:
lib/iodruby.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from IODResponse

#json

Constructor Details

#initialize(response, client) ⇒ IODAsyncResponse

Returns a new instance of IODAsyncResponse.



38
39
40
41
42
43
# File 'lib/iodruby.rb', line 38

def initialize(response,client)
  #@query=query
  @response=response
  @client=client
  @jobID =response.body["jobID"]
end

Instance Attribute Details

#jobIDObject

Returns the value of attribute jobID.



37
38
39
# File 'lib/iodruby.rb', line 37

def jobID
  @jobID
end

#responseObject

Returns the value of attribute response.



36
37
38
# File 'lib/iodruby.rb', line 36

def response
  @response
end

Instance Method Details

#resultObject



49
50
51
# File 'lib/iodruby.rb', line 49

def result()
  @client.getResult(@jobID)
end

#statusObject



45
46
47
# File 'lib/iodruby.rb', line 45

def status()
  @client.getStatus(@jobID)
end