Sha256: 9c2afe74aa3207225a33a523d87ca11f1a92f8cdd5969aa773098df861e34b95

Contents?: true

Size: 654 Bytes

Versions: 18

Compression:

Stored size: 654 Bytes

Contents

module PantographCore
  class AnalyticsEventBuilder
    attr_accessor :action_name

    # pantograph_client_language valid options are :ruby
    def initialize(p_hash: nil, session_id: nil, action_name: nil, pantograph_client_language: :ruby)
      @p_hash = p_hash
      @session_id = session_id
      @action_name = action_name
      @pantograph_client_language = pantograph_client_language
    end

    def new_event(action_stage)
      {
        client_id: @p_hash,
        category: "pantograph Client Language - #{@pantograph_client_language}",
        action: action_stage,
        label: action_name,
        value: nil
      }
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
pantograph-0.1.22 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.21 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.20 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.19 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.17 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.16 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.15 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.14 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.13 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.12 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.10 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.8 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.7 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.6 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.4 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.3 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.1 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb
pantograph-0.1.0 pantograph_core/lib/pantograph_core/analytics/analytics_event_builder.rb