Class: Continuum::Entry
- Inherits:
-
Object
- Object
- Continuum::Entry
- Defined in:
- lib/memcache.rb
Instance Attribute Summary (collapse)
-
- (Object) server
readonly
Returns the value of attribute server.
-
- (Object) value
readonly
Returns the value of attribute value.
Instance Method Summary (collapse)
-
- (Entry) initialize(val, srv)
constructor
A new instance of Entry.
- - (Object) inspect
Constructor Details
- (Entry) initialize(val, srv)
A new instance of Entry
1199 1200 1201 1202 |
# File 'lib/memcache.rb', line 1199 def initialize(val, srv) @value = val @server = srv end |
Instance Attribute Details
- (Object) server (readonly)
Returns the value of attribute server
1197 1198 1199 |
# File 'lib/memcache.rb', line 1197 def server @server end |
- (Object) value (readonly)
Returns the value of attribute value
1196 1197 1198 |
# File 'lib/memcache.rb', line 1196 def value @value end |
Instance Method Details
- (Object) inspect
1204 1205 1206 |
# File 'lib/memcache.rb', line 1204 def inspect "<#{value}, #{server.host}:#{server.port}>" end |