Class: Builderator::Control::Version::SCM::Commit

Inherits:
Object
  • Object
show all
Defined in:
lib/builderator/control/version/scm.rb

Overview

An SCM commit entity

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



84
85
86
# File 'lib/builderator/control/version/scm.rb', line 84

def id
  @id
end

#messageObject (readonly)

Returns the value of attribute message.



85
86
87
# File 'lib/builderator/control/version/scm.rb', line 85

def message
  @message
end

#tagsObject (readonly)

Returns the value of attribute tags.



86
87
88
# File 'lib/builderator/control/version/scm.rb', line 86

def tags
  @tags
end