class Dalli::Elasticache::AutoDiscovery::Node

Represents a single memcached node in the cluster.

Attributes

host[R]
ip[R]
port[R]

Public Class Methods

new(host, ip, port) click to toggle source
# File lib/dalli/elasticache/auto_discovery/node.rb, line 13
def initialize(host, ip, port)
  @host = host
  @ip = ip
  @port = port
end

Public Instance Methods

==(other) click to toggle source
# File lib/dalli/elasticache/auto_discovery/node.rb, line 19
def ==(other)
  host == other.host &&
    ip == other.ip &&
    port == other.port
end
eql?(other) click to toggle source
# File lib/dalli/elasticache/auto_discovery/node.rb, line 25
def eql?(other)
  self == other
end
hash() click to toggle source
# File lib/dalli/elasticache/auto_discovery/node.rb, line 29
def hash
  [host, ip, port].hash
end
to_s() click to toggle source
# File lib/dalli/elasticache/auto_discovery/node.rb, line 33
def to_s
  "#{@host}:#{@port}"
end