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.



1170
1171
1172
1173
# File 'lib/memcache.rb', line 1170

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

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



1168
1169
1170
# File 'lib/memcache.rb', line 1168

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



1167
1168
1169
# File 'lib/memcache.rb', line 1167

def value
  @value
end

Instance Method Details

#inspectObject



1175
1176
1177
# File 'lib/memcache.rb', line 1175

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