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.
-
#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) ⇒ ActionCompletionContext
constructor
A new instance of ActionCompletionContext.
Constructor Details
#initialize(p_hash: nil, action_name: nil, status: nil) ⇒ ActionCompletionContext
Returns a new instance of ActionCompletionContext.
16 17 18 19 20 |
# File 'fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb', line 16 def initialize(p_hash: nil, action_name: nil, status: nil) @p_hash = p_hash @action_name = action_name @status = status 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 |
#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, args: nil, status: nil) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb', line 22 def self.context_for_action_name(action_name, 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 ) end |