Class: Dalli::Ring::Entry
- Inherits:
-
Object
- Object
- Dalli::Ring::Entry
- Defined in:
- lib/dalli/ring.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.
Constructor Details
#initialize(val, srv) ⇒ Entry
Returns a new instance of Entry.
135 136 137 138 |
# File 'lib/dalli/ring.rb', line 135 def initialize(val, srv) @value = val @server = srv end |
Instance Attribute Details
#server ⇒ Object (readonly)
Returns the value of attribute server.
133 134 135 |
# File 'lib/dalli/ring.rb', line 133 def server @server end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
132 133 134 |
# File 'lib/dalli/ring.rb', line 132 def value @value end |