Class: Mozenda::Request::AgentRun
- Defined in:
- lib/mozenda/request/agent_run.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ AgentRun
constructor
A new instance of AgentRun.
Methods inherited from Base
Constructor Details
#initialize(options) ⇒ AgentRun
Returns a new instance of AgentRun.
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/mozenda/request/agent_run.rb', line 4 def initialize super put_additional_param("AgentID", [:agent_id]) params = [:params] || {} params.each_pair do |name, value| put_additional_param("AgentParameter.#{name}", value) end job_params = [:job_params] || {} put_additional_param("Job.StatusUrl", format_status_url(job_params)) unless job_params.empty? end |