Class: FastlaneCore::ActionCompletionContext
- Inherits:
-
Object
- Object
- FastlaneCore::ActionCompletionContext
- Defined in:
- fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
Instance Attribute Summary collapse
-
#action_name ⇒ Object
Returns the value of attribute action_name.
-
#fastlane_client_language ⇒ Object
Returns the value of attribute fastlane_client_language.
-
#p_hash ⇒ Object
Returns the value of attribute p_hash.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(p_hash: nil, action_name: nil, status: nil, fastlane_client_language: nil) ⇒ ActionCompletionContext
constructor
A new instance of ActionCompletionContext.
Constructor Details
#initialize(p_hash: nil, action_name: nil, status: nil, fastlane_client_language: nil) ⇒ ActionCompletionContext
Returns a new instance of ActionCompletionContext.
17 18 19 20 21 22 |
# File 'fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb', line 17 def initialize(p_hash: nil, action_name: nil, status: nil, fastlane_client_language: nil) @p_hash = p_hash @action_name = action_name @status = status @fastlane_client_language = fastlane_client_language end |
Instance Attribute Details
#action_name ⇒ Object
Returns the value of attribute action_name.
13 14 15 |
# File 'fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb', line 13 def action_name @action_name end |
#fastlane_client_language ⇒ Object
Returns the value of attribute fastlane_client_language.
15 16 17 |
# File 'fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb', line 15 def fastlane_client_language @fastlane_client_language end |
#p_hash ⇒ Object
Returns the value of attribute p_hash.
12 13 14 |
# File 'fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb', line 12 def p_hash @p_hash end |
#status ⇒ Object
Returns the value of attribute status.
14 15 16 |
# File 'fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb', line 14 def status @status end |
Class Method Details
.context_for_action_name(action_name, fastlane_client_language: :ruby, args: nil, status: nil) ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb', line 24 def self.context_for_action_name(action_name, fastlane_client_language: :ruby, args: nil, status: nil) app_id_guesser = FastlaneCore::AppIdentifierGuesser.new(args: args) return self.new( action_name: action_name, p_hash: app_id_guesser.p_hash, status: status, fastlane_client_language: fastlane_client_language ) end |