Class: RedHatSupportLib::Api::API
- Inherits:
-
Object
- Object
- RedHatSupportLib::Api::API
- Defined in:
- lib/api/api.rb
Instance Attribute Summary collapse
-
#article_broker ⇒ Object
readonly
Returns the value of attribute article_broker.
-
#attachment_broker ⇒ Object
readonly
Returns the value of attribute attachment_broker.
-
#case_broker ⇒ Object
readonly
Returns the value of attribute case_broker.
-
#comment_broker ⇒ Object
readonly
Returns the value of attribute comment_broker.
-
#entitlement_broker ⇒ Object
readonly
Returns the value of attribute entitlement_broker.
-
#group_broker ⇒ Object
readonly
Returns the value of attribute group_broker.
-
#problem_broker ⇒ Object
readonly
Returns the value of attribute problem_broker.
-
#product_broker ⇒ Object
readonly
Returns the value of attribute product_broker.
-
#solution_broker ⇒ Object
readonly
Returns the value of attribute solution_broker.
-
#symptom_broker ⇒ Object
readonly
Returns the value of attribute symptom_broker.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(network_config, attachments_config) ⇒ API
constructor
A new instance of API.
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, ) @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, ) @product_broker = Brokers::Product.new(@connection) @group_broker = Brokers::Group.new(@connection) @entitlement_broker = Brokers::Entitlement.new(@connection) end |
Instance Attribute Details
#article_broker ⇒ Object (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_broker ⇒ Object (readonly)
Returns the value of attribute attachment_broker.
19 20 21 |
# File 'lib/api/api.rb', line 19 def @attachment_broker end |
#case_broker ⇒ Object (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_broker ⇒ Object (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_broker ⇒ Object (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_broker ⇒ Object (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_broker ⇒ Object (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_broker ⇒ Object (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_broker ⇒ Object (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_broker ⇒ Object (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 |