Class: ProxyAPI::ForemanDynflow::DynflowProxy::Task
- Inherits:
-
Resource
- Object
- Resource
- ProxyAPI::ForemanDynflow::DynflowProxy::Task
- Defined in:
- app/lib/proxy_api/foreman_dynflow/dynflow_proxy.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(args) ⇒ Task
Returns a new instance of Task.
7 8 9 10 11 12 |
# File 'app/lib/proxy_api/foreman_dynflow/dynflow_proxy.rb', line 7 def initialize(args) @url = "#{args[:url]}/#{PREFIX}/tasks" super args @connect_params[:headers] ||= {} @connect_params[:headers]['content-type'] = 'application/json' end |