Class: Hermann::Discovery::Metadata::Broker
- Inherits:
-
Struct
- Object
- Struct
- Hermann::Discovery::Metadata::Broker
- Defined in:
- lib/hermann/discovery/metadata.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#id ⇒ Object
Returns the value of attribute id.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
7 8 9 |
# File 'lib/hermann/discovery/metadata.rb', line 7 def host @host end |
#id ⇒ Object
Returns the value of attribute id
7 8 9 |
# File 'lib/hermann/discovery/metadata.rb', line 7 def id @id end |
#port ⇒ Object
Returns the value of attribute port
7 8 9 |
# File 'lib/hermann/discovery/metadata.rb', line 7 def port @port end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/hermann/discovery/metadata.rb', line 8 def to_s "#{host}:#{port}" end |