lib/reparty/report/mixpanel.rb in reparty-0.5.1 vs lib/reparty/report/mixpanel.rb in reparty-0.5.2

- old
+ new

@@ -1,21 +1,24 @@ require 'mixpanel_client' module Reparty class Report class Mixpanel < Report - attr_reader :api_key, :api_secret, :report + attr_reader :api_key, :api_secret, :report, :fields def initialize(*args, &block) super(args.shift, args.shift) @api_key = args.shift @api_secret = args.shift @report = args.shift + @fields = [] case @report when :funnel @funnel_id = args.shift + when :engage + @fields = args.shift if args.present? end @color = "#7548a2" end \ No newline at end of file