Class: KafkaSyrup::Broker
- Inherits:
-
Object
- Object
- KafkaSyrup::Broker
- Defined in:
- lib/kafka_syrup/broker.rb
Defined Under Namespace
Modules: Communications
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(host, port) ⇒ Broker
constructor
A new instance of Broker.
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
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/kafka_syrup/broker.rb', line 3 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/kafka_syrup/broker.rb', line 3 def port @port end |