Class: Mozenda::Response::AgentGetJobs

Inherits:
Base
  • Object
show all
Defined in:
lib/mozenda/response/agent_get_jobs.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

#job_listObject



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

def job_list
  result = body_hash["JobList"]["Job"] rescue []
  Array.wrap(result)
end