Class: NewRelic::Control::Server

Inherits:
Struct
  • Object
show all
Defined in:
lib/new_relic/control/server_methods.rb

Overview

Structs holding info for the remote server and proxy server

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ipObject

Returns the value of attribute ip

Returns:

  • (Object)

    the current value of ip



9
10
11
# File 'lib/new_relic/control/server_methods.rb', line 9

def ip
  @ip
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



9
10
11
# File 'lib/new_relic/control/server_methods.rb', line 9

def name
  @name
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



9
10
11
# File 'lib/new_relic/control/server_methods.rb', line 9

def port
  @port
end

Instance Method Details

#to_sObject



10
# File 'lib/new_relic/control/server_methods.rb', line 10

def to_s; "#{name}:#{port}"; end