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.
84 85 86 87 88 |
# File 'lib/builderator/control/version/scm.rb', line 84 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.
80 81 82 |
# File 'lib/builderator/control/version/scm.rb', line 80 def id @id end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
81 82 83 |
# File 'lib/builderator/control/version/scm.rb', line 81 def @message end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
82 83 84 |
# File 'lib/builderator/control/version/scm.rb', line 82 def @tags end |