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.



1110
1111
1112
1113
# File 'lib/memcache.rb', line 1110

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

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



1108
1109
1110
# File 'lib/memcache.rb', line 1108

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



1107
1108
1109
# File 'lib/memcache.rb', line 1107

def value
  @value
end

Instance Method Details

#inspectObject



1115
1116
1117
# File 'lib/memcache.rb', line 1115

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