Class: NSCA::Client::RemoteServer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ RemoteServer

Returns a new instance of RemoteServer.



6
7
8
9
# File 'lib/nsca/client/remote_server.rb', line 6

def initialize(options)
  @host = options[:host]
  @port = options[:port] || 5667
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



4
5
6
# File 'lib/nsca/client/remote_server.rb', line 4

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



4
5
6
# File 'lib/nsca/client/remote_server.rb', line 4

def port
  @port
end