Class: Columbus::FoundService
- Inherits:
-
Object
- Object
- Columbus::FoundService
- Defined in:
- lib/columbus/client.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#host ⇒ Object
Returns the value of attribute host.
-
#name ⇒ Object
Returns the value of attribute name.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(name, host, port, description) ⇒ FoundService
constructor
A new instance of FoundService.
- #to_s ⇒ Object
Constructor Details
#initialize(name, host, port, description) ⇒ FoundService
Returns a new instance of FoundService.
11 12 13 14 15 16 |
# File 'lib/columbus/client.rb', line 11 def initialize(name, host, port, description) @name = name @host = host @port = port @description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
10 11 12 |
# File 'lib/columbus/client.rb', line 10 def description @description end |
#host ⇒ Object
Returns the value of attribute host.
10 11 12 |
# File 'lib/columbus/client.rb', line 10 def host @host end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/columbus/client.rb', line 10 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
10 11 12 |
# File 'lib/columbus/client.rb', line 10 def port @port end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/columbus/client.rb', line 17 def to_s "#{name}\t#{host}\t#{port}\t#{description}" end |