Class: Hermann::Discovery::Metadata::Broker

Inherits:
Struct
  • Object
show all
Defined in:
lib/hermann/discovery/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



7
8
9
# File 'lib/hermann/discovery/metadata.rb', line 7

def host
  @host
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



7
8
9
# File 'lib/hermann/discovery/metadata.rb', line 7

def id
  @id
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



7
8
9
# File 'lib/hermann/discovery/metadata.rb', line 7

def port
  @port
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/hermann/discovery/metadata.rb', line 8

def to_s
  "#{host}:#{port}"
end