Exception: DynectRest::Exceptions::IncompleteRequest

Inherits:
RuntimeError
  • Object
show all
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

Instance Method Summary collapse

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( message, job_id )
    @message = message
    @job_id = job_id
end

Instance Attribute Details

#job_idObject (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

#messageObject (readonly)

Returns the value of attribute message.



25
26
27
# File 'lib/dynect_rest/exceptions.rb', line 25

def message
  @message
end