Class: Fastlane::Actions::PrototypeBuildDetailsCommentAction::AppCenterInfo

Inherits:
Struct
  • Object
show all
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

Helpers collapse

Instance Attribute Details

#app_nameObject

Returns the value of attribute app_name

Returns:

  • (Object)

    the current value of 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_idObject

Returns the value of attribute bundle_id

Returns:

  • (Object)

    the current value of 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_nameObject

Returns the value of attribute display_name

Returns:

  • (Object)

    the current value of 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

#iconObject

Returns the value of attribute icon

Returns:

  • (Object)

    the current value of icon



49
50
51
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 49

def icon
  @icon
end

#org_nameObject

Returns the value of attribute org_name

Returns:

  • (Object)

    the current value of 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

#osObject

Returns the value of attribute os

Returns:

  • (Object)

    the current value of os



49
50
51
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb', line 49

def os
  @os
end

#release_idObject

Returns the value of attribute release_id

Returns:

  • (Object)

    the current value of 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_versionObject

Returns the value of attribute short_version

Returns:

  • (Object)

    the current value of 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

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of 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