Class: KafkaRest::Broker
- Inherits:
-
Object
- Object
- KafkaRest::Broker
- Defined in:
- lib/kafka_rest/broker.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(client, id) ⇒ Broker
constructor
A new instance of Broker.
- #to_s ⇒ Object
Constructor Details
#initialize(client, id) ⇒ Broker
Returns a new instance of Broker.
5 6 7 8 |
# File 'lib/kafka_rest/broker.rb', line 5 def initialize(client, id) @client = client @id = id end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/kafka_rest/broker.rb', line 3 def client @client end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/kafka_rest/broker.rb', line 3 def id @id end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/kafka_rest/broker.rb', line 10 def to_s "Broker{id=#{id}}".freeze end |