Class: Mozenda::Response::JobGet

Inherits:
Base
  • Object
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?

Constructor Details

This class inherits a constructor from Mozenda::Response::Base

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/mozenda/response/job_get.rb', line 12

def error?
  state.downcase == "error"
end

#job_idObject



4
5
6
# File 'lib/mozenda/response/job_get.rb', line 4

def job_id
  job_data["JobID"]
end

#stateObject



8
9
10
# File 'lib/mozenda/response/job_get.rb', line 8

def state
  job_data["State"]
end