Class: ForemanAnsibleDirector::Parsers::Pulp3::ApiResponse

Inherits:
Object
  • Object
show all
Defined in:
app/lib/foreman_ansible_director/parsers/pulp3/api_response.rb

Direct Known Subclasses

Core::Task::Status

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_response) ⇒ ApiResponse

Returns a new instance of ApiResponse.



9
10
11
# File 'app/lib/foreman_ansible_director/parsers/pulp3/api_response.rb', line 9

def initialize(api_response)
  @raw_response = api_response.as_json
end

Instance Attribute Details

#raw_responseObject (readonly)

Returns the value of attribute raw_response.



7
8
9
# File 'app/lib/foreman_ansible_director/parsers/pulp3/api_response.rb', line 7

def raw_response
  @raw_response
end