Class: ProxyAPI::ForemanDynflow::DynflowProxy::Task

Inherits:
Resource
  • Object
show all
Defined in:
app/lib/proxy_api/foreman_dynflow/dynflow_proxy.rb

Instance Method Summary collapse

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