Class: Mnenv::HomebrewVersion
- Inherits:
-
ArtifactVersion
- Object
- Lutaml::Model::Serializable
- ArtifactVersion
- Mnenv::HomebrewVersion
- Defined in:
- lib/mnenv/models/homebrew_version.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ HomebrewVersion
constructor
A new instance of HomebrewVersion.
- #to_hash ⇒ Object
Methods inherited from ArtifactVersion
Constructor Details
#initialize(*args) ⇒ HomebrewVersion
Returns a new instance of HomebrewVersion.
18 19 20 21 |
# File 'lib/mnenv/models/homebrew_version.rb', line 18 def initialize(*args) super @tag_name ||= "v#{version}" if version end |
Instance Method Details
#to_hash ⇒ Object
23 24 25 26 27 28 |
# File 'lib/mnenv/models/homebrew_version.rb', line 23 def to_hash super.merge( 'tag_name' => tag_name, 'commit_sha' => commit_sha ) end |