Class: RedHatSupportLib::Api::API

Inherits:
Object
  • Object
show all
Defined in:
lib/api/api.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(network_config, attachments_config) ⇒ API

Returns a new instance of API.



22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/api/api.rb', line 22

def initialize(network_config, attachments_config)
  @connection = Network::HttpConnection.new(network_config)
  @article_broker = Brokers::Article.new(@connection)
  @case_broker = Brokers::Case.new(@connection)
  @solution_broker = Brokers::Solution.new(@connection)
  @symptom_broker = Brokers::Symptom.new(@connection)
  @problem_broker = Brokers::Problem.new(@connection)
  @comment_broker = Brokers::Comment.new(@connection)
  @attachment_broker = Brokers::Attachment.new(@connection, @comment_broker, attachments_config)
  @product_broker = Brokers::Product.new(@connection)
  @group_broker = Brokers::Group.new(@connection)
  @entitlement_broker = Brokers::Entitlement.new(@connection)

end

Instance Attribute Details

#article_brokerObject (readonly)

Returns the value of attribute article_broker.



18
19
20
# File 'lib/api/api.rb', line 18

def article_broker
  @article_broker
end

#attachment_brokerObject (readonly)

Returns the value of attribute attachment_broker.



19
20
21
# File 'lib/api/api.rb', line 19

def attachment_broker
  @attachment_broker
end

#case_brokerObject (readonly)

Returns the value of attribute case_broker.



18
19
20
# File 'lib/api/api.rb', line 18

def case_broker
  @case_broker
end

#comment_brokerObject (readonly)

Returns the value of attribute comment_broker.



20
21
22
# File 'lib/api/api.rb', line 20

def comment_broker
  @comment_broker
end

#entitlement_brokerObject (readonly)

Returns the value of attribute entitlement_broker.



20
21
22
# File 'lib/api/api.rb', line 20

def entitlement_broker
  @entitlement_broker
end

#group_brokerObject (readonly)

Returns the value of attribute group_broker.



20
21
22
# File 'lib/api/api.rb', line 20

def group_broker
  @group_broker
end

#problem_brokerObject (readonly)

Returns the value of attribute problem_broker.



19
20
21
# File 'lib/api/api.rb', line 19

def problem_broker
  @problem_broker
end

#product_brokerObject (readonly)

Returns the value of attribute product_broker.



20
21
22
# File 'lib/api/api.rb', line 20

def product_broker
  @product_broker
end

#solution_brokerObject (readonly)

Returns the value of attribute solution_broker.



18
19
20
# File 'lib/api/api.rb', line 18

def solution_broker
  @solution_broker
end

#symptom_brokerObject (readonly)

Returns the value of attribute symptom_broker.



19
20
21
# File 'lib/api/api.rb', line 19

def symptom_broker
  @symptom_broker
end

Class Method Details

.log_location(path) ⇒ Object



37
38
39
# File 'lib/api/api.rb', line 37

def self.log_location(path)

end