Class: FluksoLocal::Location
- Inherits:
-
Object
- Object
- FluksoLocal::Location
- Defined in:
- lib/msg-flukso-localinterface/discover.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(host, port) ⇒ Location
constructor
A new instance of Location.
- #to_s ⇒ Object
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
#host ⇒ Object (readonly)
Returns the value of attribute host.
23 24 25 |
# File 'lib/msg-flukso-localinterface/discover.rb', line 23 def host @host end |
#port ⇒ Object (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_s ⇒ Object
28 29 30 |
# File 'lib/msg-flukso-localinterface/discover.rb', line 28 def to_s return "Flukso at #{@host}:#{@port}" end |