Class: OneApm::Support::Server

Inherits:
Struct
  • Object
show all
Defined in:
lib/one_apm/support/server.rb

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



4
5
6
# File 'lib/one_apm/support/server.rb', line 4

def ip
  @ip
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/one_apm/support/server.rb', line 4

def name
  @name
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



4
5
6
# File 'lib/one_apm/support/server.rb', line 4

def port
  @port
end

Instance Method Details

#to_sObject



5
# File 'lib/one_apm/support/server.rb', line 5

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