Class: Mozenda::Response::JobGet
- Inherits:
-
Base
- Object
- Base
- Mozenda::Response::JobGet
show all
- Defined in:
- lib/mozenda/response/job_get.rb
Instance Attribute Summary
Attributes inherited from Base
#response
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #name, #success?, #to_h, #to_xml, #valid?
Instance Method Details
#error? ⇒ Boolean
12
13
14
|
# File 'lib/mozenda/response/job_get.rb', line 12
def error?
state.downcase == "error"
end
|
#job_id ⇒ Object
4
5
6
|
# File 'lib/mozenda/response/job_get.rb', line 4
def job_id
job_data["JobID"]
end
|
#state ⇒ Object
8
9
10
|
# File 'lib/mozenda/response/job_get.rb', line 8
def state
job_data["State"]
end
|