class Aerospike::Host

Attributes

name[RW]
port[RW]
tls_name[RW]

Public Class Methods

new(host_name, host_port, tls_name = nil) click to toggle source
# File lib/aerospike/host.rb, line 25
def initialize(host_name, host_port, tls_name = nil)
  @name = host_name
  @port = host_port
  @tls_name = tls_name
end

Public Instance Methods

==(other) click to toggle source
# File lib/aerospike/host.rb, line 36
def ==(other)
  other && other.is_a?(Host) && other.name == @name && other.port == @port
end
Also aliased as: eql?
eql?(other)
Alias for: ==
hash() click to toggle source
# File lib/aerospike/host.rb, line 41
def hash
  to_s.hash
end
inspect()
Alias for: to_s
to_s() click to toggle source
# File lib/aerospike/host.rb, line 31
def to_s
  "#{@name}:#{@port}"
end
Also aliased as: inspect