Class: Fastlane::Actions::PrototypeBuildDetailsCommentAction::AppCenterInfo
- Inherits:
-
Struct
- Object
- Struct
- Fastlane::Actions::PrototypeBuildDetailsCommentAction::AppCenterInfo
- Defined in:
- lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb
Overview
A small model struct to consolidate and pack all the values related to App Center
Helpers collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#bundle_id ⇒ Object
Returns the value of attribute bundle_id.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#org_name ⇒ Object
Returns the value of attribute org_name.
-
#os ⇒ Object
Returns the value of attribute os.
-
#release_id ⇒ Object
Returns the value of attribute release_id.
-
#short_version ⇒ Object
Returns the value of attribute short_version.
-
#version ⇒ Object
Returns the value of attribute version.
Helpers collapse
-
.from_params(params) ⇒ Object
A method to construct an AppCenterInfo instance from the action params, and infer the rest from the ‘lane_context` if available.
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name
49 50 51 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 49 def app_name @app_name end |
#bundle_id ⇒ Object
Returns the value of attribute bundle_id
49 50 51 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 49 def bundle_id @bundle_id end |
#display_name ⇒ Object
Returns the value of attribute display_name
49 50 51 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 49 def display_name @display_name end |
#icon ⇒ Object
Returns the value of attribute icon
49 50 51 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 49 def icon @icon end |
#org_name ⇒ Object
Returns the value of attribute org_name
49 50 51 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 49 def org_name @org_name end |
#os ⇒ Object
Returns the value of attribute os
49 50 51 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 49 def os @os end |
#release_id ⇒ Object
Returns the value of attribute release_id
49 50 51 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 49 def release_id @release_id end |
#short_version ⇒ Object
Returns the value of attribute short_version
49 50 51 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 49 def short_version @short_version end |
#version ⇒ Object
Returns the value of attribute version
49 50 51 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 49 def version @version end |
Class Method Details
.from_params(params) ⇒ Object
A method to construct an AppCenterInfo instance from the action params, and infer the rest from the ‘lane_context` if available
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 51 def self.from_params(params) org_name = params[:app_center_org_name] ctx = if org_name && defined?(SharedValues::APPCENTER_BUILD_INFORMATION) Fastlane::Actions.lane_context[SharedValues::APPCENTER_BUILD_INFORMATION] || {} else {} end app_name = params[:app_center_app_name] || ctx['app_name'] new( org_name, app_name, ctx['app_display_name'] || app_name, params[:app_center_release_id] || ctx['id'], ctx['app_icon_url'], ctx['version'], ctx['short_version'], ctx['app_os'], ctx['bundle_identifier'] ) end |