Class: KafkaRest::Broker

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



3
4
5
# File 'lib/kafka_rest/broker.rb', line 3

def client
  @client
end

#idObject (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_sObject



10
11
12
# File 'lib/kafka_rest/broker.rb', line 10

def to_s
  "Broker{id=#{id}}".freeze
end