Class: IODAsyncResponse
- Inherits:
-
IODResponse
- Object
- IODResponse
- IODAsyncResponse
- Defined in:
- lib/iodruby.rb
Instance Attribute Summary collapse
-
#jobID ⇒ Object
Returns the value of attribute jobID.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, client) ⇒ IODAsyncResponse
constructor
A new instance of IODAsyncResponse.
- #result ⇒ Object
- #status ⇒ Object
Methods inherited from IODResponse
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
#jobID ⇒ Object
Returns the value of attribute jobID.
37 38 39 |
# File 'lib/iodruby.rb', line 37 def jobID @jobID end |
#response ⇒ Object
Returns the value of attribute response.
36 37 38 |
# File 'lib/iodruby.rb', line 36 def response @response end |
Instance Method Details
#result ⇒ Object
49 50 51 |
# File 'lib/iodruby.rb', line 49 def result() @client.getResult(@jobID) end |
#status ⇒ Object
45 46 47 |
# File 'lib/iodruby.rb', line 45 def status() @client.getStatus(@jobID) end |