Class: ForemanRhCloud::URLRemediationsRetriever

Inherits:
RemediationsRetriever show all
Defined in:
app/services/foreman_rh_cloud/url_remediations_retriever.rb

Instance Attribute Summary collapse

Attributes inherited from RemediationsRetriever

#logger

Instance Method Summary collapse

Methods inherited from RemediationsRetriever

#create_playbook

Methods included from CertAuth

#cert_auth_available?, #execute_cloud_request

Methods included from InsightsCloud::CandlepinCache

#candlepin_id_cert, #cp_owner_id, #upstream_owner

Methods included from CloudRequest

#execute_cloud_request

Constructor Details

#initialize(url:, organization_id:, payload: '', headers: {}, logger: Logger.new(IO::NULL)) ⇒ URLRemediationsRetriever

Returns a new instance of URLRemediationsRetriever.



5
6
7
8
9
10
11
12
# File 'app/services/foreman_rh_cloud/url_remediations_retriever.rb', line 5

def initialize(url:, organization_id:, payload: '', headers: {}, logger: Logger.new(IO::NULL))
  super(logger: logger)

  @url = url
  @payload = payload
  @headers = headers
  @organization_id = organization_id
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'app/services/foreman_rh_cloud/url_remediations_retriever.rb', line 3

def url
  @url
end