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.



1121
1122
1123
1124
# File 'lib/memcache.rb', line 1121

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

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



1119
1120
1121
# File 'lib/memcache.rb', line 1119

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



1118
1119
1120
# File 'lib/memcache.rb', line 1118

def value
  @value
end

Instance Method Details

#inspectObject



1126
1127
1128
# File 'lib/memcache.rb', line 1126

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