Class: Builderator::Control::Version::SCM::Commit
- Inherits:
-
Object
- Object
- Builderator::Control::Version::SCM::Commit
- Defined in:
- lib/builderator/control/version/scm.rb
Overview
An SCM commit entity
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize(match) ⇒ Commit
constructor
A new instance of Commit.
Constructor Details
#initialize(match) ⇒ Commit
Returns a new instance of Commit.
88 89 90 91 92 |
# File 'lib/builderator/control/version/scm.rb', line 88 def initialize(match) @id = match[:id] @message = match[:message] @tags = match.fetch(:tags, []) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
84 85 86 |
# File 'lib/builderator/control/version/scm.rb', line 84 def id @id end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
85 86 87 |
# File 'lib/builderator/control/version/scm.rb', line 85 def @message end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
86 87 88 |
# File 'lib/builderator/control/version/scm.rb', line 86 def @tags end |