Class: Rudder::Analytics::TestQueue
- Inherits:
-
Object
- Object
- Rudder::Analytics::TestQueue
- Defined in:
- lib/rudder/analytics/test_queue.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
- #<<(message) ⇒ Object
- #[](key) ⇒ Object
- #alias ⇒ Object
- #all ⇒ Object
- #count ⇒ Object
- #group ⇒ Object
- #identify ⇒ Object
-
#initialize ⇒ TestQueue
constructor
A new instance of TestQueue.
- #page ⇒ Object
- #reset! ⇒ Object
- #screen ⇒ Object
- #track ⇒ Object
Constructor Details
#initialize ⇒ TestQueue
Returns a new instance of TestQueue.
8 9 10 |
# File 'lib/rudder/analytics/test_queue.rb', line 8 def initialize reset! end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
6 7 8 |
# File 'lib/rudder/analytics/test_queue.rb', line 6 def @messages end |
Instance Method Details
#<<(message) ⇒ Object
20 21 22 23 |
# File 'lib/rudder/analytics/test_queue.rb', line 20 def <<() all << send([:type]) << end |
#[](key) ⇒ Object
12 13 14 |
# File 'lib/rudder/analytics/test_queue.rb', line 12 def [](key) all[key] end |
#alias ⇒ Object
25 26 27 |
# File 'lib/rudder/analytics/test_queue.rb', line 25 def alias [:alias] ||= [] end |
#all ⇒ Object
29 30 31 |
# File 'lib/rudder/analytics/test_queue.rb', line 29 def all [:all] ||= [] end |
#count ⇒ Object
16 17 18 |
# File 'lib/rudder/analytics/test_queue.rb', line 16 def count all.count end |
#group ⇒ Object
33 34 35 |
# File 'lib/rudder/analytics/test_queue.rb', line 33 def group [:group] ||= [] end |
#identify ⇒ Object
37 38 39 |
# File 'lib/rudder/analytics/test_queue.rb', line 37 def identify [:identify] ||= [] end |
#page ⇒ Object
41 42 43 |
# File 'lib/rudder/analytics/test_queue.rb', line 41 def page [:page] ||= [] end |
#reset! ⇒ Object
53 54 55 |
# File 'lib/rudder/analytics/test_queue.rb', line 53 def reset! @messages = {} end |
#screen ⇒ Object
45 46 47 |
# File 'lib/rudder/analytics/test_queue.rb', line 45 def screen [:screen] ||= [] end |
#track ⇒ Object
49 50 51 |
# File 'lib/rudder/analytics/test_queue.rb', line 49 def track [:track] ||= [] end |