Class: KafkaSyrup::Broker

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

Defined Under Namespace

Modules: Communications

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, port) ⇒ Broker

Returns a new instance of Broker.



5
6
7
8
9
# File 'lib/kafka_syrup/broker.rb', line 5

def initialize(host, port)
  self.host = host
  self.port = port
  self.extend Communications
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end