Class: MixTape::FakeTracker
- Inherits:
-
Object
- Object
- MixTape::FakeTracker
- Defined in:
- lib/mix_tape/fake_tracker.rb
Defined Under Namespace
Classes: People
Instance Attribute Summary collapse
-
#console_logging ⇒ Object
readonly
Returns the value of attribute console_logging.
Instance Method Summary collapse
-
#initialize(console_logging) ⇒ FakeTracker
constructor
A new instance of FakeTracker.
- #people ⇒ Object
- #track(distinct_id, name, args = {}) ⇒ Object
Constructor Details
#initialize(console_logging) ⇒ FakeTracker
Returns a new instance of FakeTracker.
6 7 8 |
# File 'lib/mix_tape/fake_tracker.rb', line 6 def initialize(console_logging) @console_logging = console_logging end |
Instance Attribute Details
#console_logging ⇒ Object (readonly)
Returns the value of attribute console_logging.
4 5 6 |
# File 'lib/mix_tape/fake_tracker.rb', line 4 def console_logging @console_logging end |
Instance Method Details
#people ⇒ Object
14 15 16 |
# File 'lib/mix_tape/fake_tracker.rb', line 14 def people @people ||= People.new(console_logging) end |
#track(distinct_id, name, args = {}) ⇒ Object
10 11 12 |
# File 'lib/mix_tape/fake_tracker.rb', line 10 def track(distinct_id, name, args={}) puts "FakeTracker.track #{distinct_id}, #{name}, #{args}" if console_logging end |