Class: Continuum::Entry

Inherits:
Object show all
Defined in:
lib/active_support/vendor/memcache-client-1.7.4/memcache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val, srv) ⇒ Entry

Returns a new instance of Entry.



1097
1098
1099
1100
# File 'lib/active_support/vendor/memcache-client-1.7.4/memcache.rb', line 1097

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

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



1095
1096
1097
# File 'lib/active_support/vendor/memcache-client-1.7.4/memcache.rb', line 1095

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



1094
1095
1096
# File 'lib/active_support/vendor/memcache-client-1.7.4/memcache.rb', line 1094

def value
  @value
end

Instance Method Details

#inspectObject



1102
1103
1104
# File 'lib/active_support/vendor/memcache-client-1.7.4/memcache.rb', line 1102

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