Exception: DynectRest::Exceptions::IncompleteRequest
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- DynectRest::Exceptions::IncompleteRequest
- Defined in:
- lib/dynect_rest/exceptions.rb
Overview
we need to handle API calls that return a status of ‘incomplete’ and return the job_id
Instance Attribute Summary collapse
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, job_id) ⇒ IncompleteRequest
constructor
A new instance of IncompleteRequest.
Constructor Details
#initialize(message, job_id) ⇒ IncompleteRequest
Returns a new instance of IncompleteRequest.
27 28 29 30 |
# File 'lib/dynect_rest/exceptions.rb', line 27 def initialize( , job_id ) @message = @job_id = job_id end |
Instance Attribute Details
#job_id ⇒ Object (readonly)
Returns the value of attribute job_id.
25 26 27 |
# File 'lib/dynect_rest/exceptions.rb', line 25 def job_id @job_id end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
25 26 27 |
# File 'lib/dynect_rest/exceptions.rb', line 25 def @message end |