Class: Rox::Core::Analytics::TestQueue
- Inherits:
-
Object
- Object
- Rox::Core::Analytics::TestQueue
- Defined in:
- lib/rox/core/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.
7 8 9 |
# File 'lib/rox/core/analytics/test_queue.rb', line 7 def initialize reset! end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
5 6 7 |
# File 'lib/rox/core/analytics/test_queue.rb', line 5 def @messages end |
Instance Method Details
#<<(message) ⇒ Object
19 20 21 22 |
# File 'lib/rox/core/analytics/test_queue.rb', line 19 def <<() all << send([:type]) << end |
#[](key) ⇒ Object
11 12 13 |
# File 'lib/rox/core/analytics/test_queue.rb', line 11 def [](key) all[key] end |
#alias ⇒ Object
24 25 26 |
# File 'lib/rox/core/analytics/test_queue.rb', line 24 def alias [:alias] ||= [] end |
#all ⇒ Object
28 29 30 |
# File 'lib/rox/core/analytics/test_queue.rb', line 28 def all [:all] ||= [] end |
#count ⇒ Object
15 16 17 |
# File 'lib/rox/core/analytics/test_queue.rb', line 15 def count all.count end |
#group ⇒ Object
32 33 34 |
# File 'lib/rox/core/analytics/test_queue.rb', line 32 def group [:group] ||= [] end |
#identify ⇒ Object
36 37 38 |
# File 'lib/rox/core/analytics/test_queue.rb', line 36 def identify [:identify] ||= [] end |
#page ⇒ Object
40 41 42 |
# File 'lib/rox/core/analytics/test_queue.rb', line 40 def page [:page] ||= [] end |
#reset! ⇒ Object
52 53 54 |
# File 'lib/rox/core/analytics/test_queue.rb', line 52 def reset! @messages = {} end |
#screen ⇒ Object
44 45 46 |
# File 'lib/rox/core/analytics/test_queue.rb', line 44 def screen [:screen] ||= [] end |
#track ⇒ Object
48 49 50 |
# File 'lib/rox/core/analytics/test_queue.rb', line 48 def track [:track] ||= [] end |