Class: Continuum::Entry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val, srv) ⇒ Entry

Returns a new instance of Entry.



926
927
928
929
# File 'lib/active_support/vendor/memcache-client-1.6.5/memcache.rb', line 926

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

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



924
925
926
# File 'lib/active_support/vendor/memcache-client-1.6.5/memcache.rb', line 924

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



923
924
925
# File 'lib/active_support/vendor/memcache-client-1.6.5/memcache.rb', line 923

def value
  @value
end

Instance Method Details

#inspectObject



931
932
933
# File 'lib/active_support/vendor/memcache-client-1.6.5/memcache.rb', line 931

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