Class: Continuum::Entry
- Inherits:
-
Object
- Object
- Continuum::Entry
- Defined in:
- lib/memcache.rb
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
Returns the value of attribute server.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(val, srv) ⇒ Entry
constructor
A new instance of Entry.
- #inspect ⇒ Object
Constructor Details
#initialize(val, srv) ⇒ Entry
Returns a new instance of Entry.
1135 1136 1137 1138 |
# File 'lib/memcache.rb', line 1135 def initialize(val, srv) @value = val @server = srv end |
Instance Attribute Details
#server ⇒ Object (readonly)
Returns the value of attribute server.
1133 1134 1135 |
# File 'lib/memcache.rb', line 1133 def server @server end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
1132 1133 1134 |
# File 'lib/memcache.rb', line 1132 def value @value end |
Instance Method Details
#inspect ⇒ Object
1140 1141 1142 |
# File 'lib/memcache.rb', line 1140 def inspect "<#{value}, #{server.host}:#{server.port}>" end |