Class: ForemanAnsibleDirector::Parsers::Proxy::Dynflow::DynflowResponse

Inherits:
Object
  • Object
show all
Defined in:
app/lib/foreman_ansible_director/parsers/proxy/dynflow/dynflow_response.rb

Direct Known Subclasses

TaskStatusParser

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_response) ⇒ DynflowResponse

Returns a new instance of DynflowResponse.



10
11
12
13
# File 'app/lib/foreman_ansible_director/parsers/proxy/dynflow/dynflow_response.rb', line 10

def initialize(api_response)
  @raw_response = api_response
  @parsed_response = JSON.parse(api_response.body)
end

Instance Attribute Details

#raw_responseObject (readonly)

Returns the value of attribute raw_response.



8
9
10
# File 'app/lib/foreman_ansible_director/parsers/proxy/dynflow/dynflow_response.rb', line 8

def raw_response
  @raw_response
end