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.



1101
1102
1103
1104
# File 'lib/memcache.rb', line 1101

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

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



1099
1100
1101
# File 'lib/memcache.rb', line 1099

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



1098
1099
1100
# File 'lib/memcache.rb', line 1098

def value
  @value
end

Instance Method Details

#inspectObject



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

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