Class: MixTape::FakeTracker

Inherits:
Object
  • Object
show all
Defined in:
lib/mix_tape/fake_tracker.rb

Defined Under Namespace

Classes: People

Instance Attribute Summary collapse

Instance Method Summary collapse

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_loggingObject (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

#peopleObject



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