Class: Fastlane::Models::BuildCode
- Inherits:
-
Object
- Object
- Fastlane::Models::BuildCode
- 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
-
#build_code ⇒ Object
Returns the value of attribute build_code.
Instance Method Summary collapse
-
#initialize(build_code) ⇒ BuildCode
constructor
Initializes a new BuildCode instance with the provided build code value.
-
#to_s ⇒ String
Returns the build code as a string.
Constructor Details
#initialize(build_code) ⇒ BuildCode
Initializes a new BuildCode instance with the provided 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_code ⇒ Object
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_s ⇒ String
Returns the build code 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 |