Class: FluksoLocal::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/msg-flukso-localinterface/discover.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, port) ⇒ Location

Returns a new instance of Location.



24
25
26
27
# File 'lib/msg-flukso-localinterface/discover.rb', line 24

def initialize(host, port)
  @host=host
  @port=port
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



23
24
25
# File 'lib/msg-flukso-localinterface/discover.rb', line 23

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



23
24
25
# File 'lib/msg-flukso-localinterface/discover.rb', line 23

def port
  @port
end

Instance Method Details

#to_sObject



28
29
30
# File 'lib/msg-flukso-localinterface/discover.rb', line 28

def to_s
  return "Flukso at #{@host}:#{@port}"
end