module MixTape

Constants

VERSION

Attributes

console_logging[RW]
fake[RW]
request[RW]
token[RW]

Public Class Methods

client() click to toggle source
# File lib/mix_tape/client.rb, line 6
def client
  raise(ArgumentError, %{MixPanel token is undefined.}) if (token.nil? || token.empty?) && !fake
  @client = mix_client
end
config(&block) click to toggle source
# File lib/mix_tape/client.rb, line 11
def config(&block)
  instance_eval(&block)
end

Private Class Methods

mix_client() click to toggle source
# File lib/mix_tape/client.rb, line 17
def mix_client
  if !!fake
    FakeTracker.new(console_logging)
  else
    Mixpanel::Tracker.new(token)
  end
end