Class: Hookers::Changelog::Commit
- Inherits:
-
Object
- Object
- Hookers::Changelog::Commit
- Defined in:
- lib/hookers/changelog/commit.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#message ⇒ Object
Returns the value of attribute message.
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(project, id, message) ⇒ Commit
constructor
A new instance of Commit.
- #uri ⇒ Object
Constructor Details
#initialize(project, id, message) ⇒ Commit
Returns a new instance of Commit.
8 9 10 11 12 |
# File 'lib/hookers/changelog/commit.rb', line 8 def initialize(project, id, ) self.project = project self.id = id self. = end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/hookers/changelog/commit.rb', line 6 def id @id end |
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/hookers/changelog/commit.rb', line 6 def @message end |
#project ⇒ Object
Returns the value of attribute project.
6 7 8 |
# File 'lib/hookers/changelog/commit.rb', line 6 def project @project end |
Instance Method Details
#uri ⇒ Object
14 15 16 |
# File 'lib/hookers/changelog/commit.rb', line 14 def uri project.commit_uri(self.id) end |