Class: Columbus::FoundService

Inherits:
Object
  • Object
show all
Defined in:
lib/columbus/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



10
11
12
# File 'lib/columbus/client.rb', line 10

def description
  @description
end

#hostObject

Returns the value of attribute host.



10
11
12
# File 'lib/columbus/client.rb', line 10

def host
  @host
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/columbus/client.rb', line 10

def name
  @name
end

#portObject

Returns the value of attribute port.



10
11
12
# File 'lib/columbus/client.rb', line 10

def port
  @port
end

Instance Method Details

#to_sObject



17
18
19
# File 'lib/columbus/client.rb', line 17

def to_s
  "#{name}\t#{host}\t#{port}\t#{description}"      
end