Class: FastlaneCore::AnalyticsEventBuilder
- Inherits:
-
Object
- Object
- FastlaneCore::AnalyticsEventBuilder
- Defined in:
- fastlane_core/lib/fastlane_core/analytics/analytics_event_builder.rb
Instance Attribute Summary collapse
-
#action_name ⇒ Object
Returns the value of attribute action_name.
Instance Method Summary collapse
-
#initialize(p_hash: nil, session_id: nil, action_name: nil, fastlane_client_language: :ruby) ⇒ AnalyticsEventBuilder
constructor
fastlane_client_language valid options are :ruby or :swift.
- #new_event(action_stage) ⇒ Object
Constructor Details
#initialize(p_hash: nil, session_id: nil, action_name: nil, fastlane_client_language: :ruby) ⇒ AnalyticsEventBuilder
fastlane_client_language valid options are :ruby or :swift
6 7 8 9 10 11 |
# File 'fastlane_core/lib/fastlane_core/analytics/analytics_event_builder.rb', line 6 def initialize(p_hash: nil, session_id: nil, action_name: nil, fastlane_client_language: :ruby) @p_hash = p_hash @session_id = session_id @action_name = action_name @fastlane_client_language = fastlane_client_language end |
Instance Attribute Details
#action_name ⇒ Object
Returns the value of attribute action_name.
3 4 5 |
# File 'fastlane_core/lib/fastlane_core/analytics/analytics_event_builder.rb', line 3 def action_name @action_name end |
Instance Method Details
#new_event(action_stage) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'fastlane_core/lib/fastlane_core/analytics/analytics_event_builder.rb', line 13 def new_event(action_stage) { client_id: @p_hash, category: "fastlane Client Language - #{@fastlane_client_language}", action: action_stage, label: action_name, value: nil } end |