Class: Dalli::Ring::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/dalli/ring.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val, srv) ⇒ Entry

Returns a new instance of Entry.



133
134
135
136
# File 'lib/dalli/ring.rb', line 133

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

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



131
132
133
# File 'lib/dalli/ring.rb', line 131

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



130
131
132
# File 'lib/dalli/ring.rb', line 130

def value
  @value
end