Class: Fastlane::Models::BuildCode

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/wpmreleasetoolkit/models/build_code.rb

Overview

The ‘BuildCode` model represents a build code for an app. This could be the Version Code for an Android app or the VERSION_LONG/BUILD_NUMBER for an iOS/Mac app.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(build_code) ⇒ BuildCode

Initializes a new BuildCode instance with the provided build code value.

Parameters:

  • build_code (String)

    The build code value.



12
13
14
15
16
# File 'lib/fastlane/plugin/wpmreleasetoolkit/models/build_code.rb', line 12

def initialize(build_code)
  UI.user_error!('Build code cannot be nil') if build_code.nil?

  @build_code = build_code
end

Instance Attribute Details

#build_codeObject

Returns the value of attribute build_code.



6
7
8
# File 'lib/fastlane/plugin/wpmreleasetoolkit/models/build_code.rb', line 6

def build_code
  @build_code
end

Instance Method Details

#to_sString

Returns the build code as a string.

Returns:

  • (String)

    The build code represented as a string.



22
23
24
# File 'lib/fastlane/plugin/wpmreleasetoolkit/models/build_code.rb', line 22

def to_s
  @build_code.to_s
end