Class: Continuum::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/memcache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val, srv) ⇒ Entry

Returns a new instance of Entry.



946
947
948
949
# File 'lib/memcache.rb', line 946

def initialize(val, srv)
  @value = val
  @server = srv
end

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



944
945
946
# File 'lib/memcache.rb', line 944

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



943
944
945
# File 'lib/memcache.rb', line 943

def value
  @value
end

Instance Method Details

#inspectObject



951
952
953
# File 'lib/memcache.rb', line 951

def inspect
  "<#{value}, #{server.host}:#{server.port}>"
end