Class: June::Analytics::TestQueue
- Inherits:
-
Object
- Object
- June::Analytics::TestQueue
- Defined in:
- lib/june/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.
6 7 8 |
# File 'lib/june/analytics/test_queue.rb', line 6 def initialize reset! end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
4 5 6 |
# File 'lib/june/analytics/test_queue.rb', line 4 def @messages end |
Instance Method Details
#<<(message) ⇒ Object
18 19 20 21 |
# File 'lib/june/analytics/test_queue.rb', line 18 def <<() all << send([:type]) << end |
#[](key) ⇒ Object
10 11 12 |
# File 'lib/june/analytics/test_queue.rb', line 10 def [](key) all[key] end |
#alias ⇒ Object
23 24 25 |
# File 'lib/june/analytics/test_queue.rb', line 23 def alias [:alias] ||= [] end |
#all ⇒ Object
27 28 29 |
# File 'lib/june/analytics/test_queue.rb', line 27 def all [:all] ||= [] end |
#count ⇒ Object
14 15 16 |
# File 'lib/june/analytics/test_queue.rb', line 14 def count all.count end |
#group ⇒ Object
31 32 33 |
# File 'lib/june/analytics/test_queue.rb', line 31 def group [:group] ||= [] end |
#identify ⇒ Object
35 36 37 |
# File 'lib/june/analytics/test_queue.rb', line 35 def identify [:identify] ||= [] end |
#page ⇒ Object
39 40 41 |
# File 'lib/june/analytics/test_queue.rb', line 39 def page [:page] ||= [] end |
#reset! ⇒ Object
51 52 53 |
# File 'lib/june/analytics/test_queue.rb', line 51 def reset! @messages = {} end |
#screen ⇒ Object
43 44 45 |
# File 'lib/june/analytics/test_queue.rb', line 43 def screen [:screen] ||= [] end |
#track ⇒ Object
47 48 49 |
# File 'lib/june/analytics/test_queue.rb', line 47 def track [:track] ||= [] end |