Class: NSCA::Client::RemoteServer
- Inherits:
- 
      Object
      
        - Object
- NSCA::Client::RemoteServer
 
- Defined in:
- lib/nsca/client/remote_server.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(options)  ⇒ RemoteServer 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RemoteServer. 
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() @host = [:host] @port = [:port] || 5667 end | 
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
| 4 5 6 | # File 'lib/nsca/client/remote_server.rb', line 4 def host @host end | 
#port ⇒ Object (readonly)
Returns the value of attribute port.
| 4 5 6 | # File 'lib/nsca/client/remote_server.rb', line 4 def port @port end |