Class: AmplitudeExperiment::ListNode

Inherits:
Object
  • Object
show all
Defined in:
lib/experiment/util/lru_cache.rb

Overview

ListNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ListNode

Returns a new instance of ListNode.



6
7
8
9
10
# File 'lib/experiment/util/lru_cache.rb', line 6

def initialize(data)
  @prev = nil
  @next = nil
  @data = data
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



4
5
6
# File 'lib/experiment/util/lru_cache.rb', line 4

def data
  @data
end

#nextObject

Returns the value of attribute next.



4
5
6
# File 'lib/experiment/util/lru_cache.rb', line 4

def next
  @next
end

#prevObject

Returns the value of attribute prev.



4
5
6
# File 'lib/experiment/util/lru_cache.rb', line 4

def prev
  @prev
end