Class: RedHatSupportLib::Brokers::Broker
- Inherits:
-
Object
- Object
- RedHatSupportLib::Brokers::Broker
- Defined in:
- lib/brokers/broker.rb
Direct Known Subclasses
Article, Attachment, Case, Comment, Entitlement, Group, Problem, Product, Solution, Symptom
Instance Attribute Summary collapse
-
#connection ⇒ Object
Returns the value of attribute connection.
Instance Method Summary collapse
- #get_id(uri) ⇒ Object
-
#initialize(connection) ⇒ Broker
constructor
A new instance of Broker.
Constructor Details
#initialize(connection) ⇒ Broker
Returns a new instance of Broker.
6 7 8 |
# File 'lib/brokers/broker.rb', line 6 def initialize (connection) @connection = connection end |
Instance Attribute Details
#connection ⇒ Object
Returns the value of attribute connection.
4 5 6 |
# File 'lib/brokers/broker.rb', line 4 def connection @connection end |
Instance Method Details
#get_id(uri) ⇒ Object
10 11 12 13 |
# File 'lib/brokers/broker.rb', line 10 def get_id(uri) parts = uri.split("/") parts.pop end |