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.



1181
1182
1183
1184
# File 'lib/memcache.rb', line 1181

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

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



1179
1180
1181
# File 'lib/memcache.rb', line 1179

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



1178
1179
1180
# File 'lib/memcache.rb', line 1178

def value
  @value
end

Instance Method Details

#inspectObject



1186
1187
1188
# File 'lib/memcache.rb', line 1186

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