Class: Hookers::Changelog::Commit

Inherits:
Object
  • Object
show all
Defined in:
lib/hookers/changelog/commit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  self.project = project
  self.id = id
  self.message = message
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/hookers/changelog/commit.rb', line 6

def id
  @id
end

#messageObject

Returns the value of attribute message.



6
7
8
# File 'lib/hookers/changelog/commit.rb', line 6

def message
  @message
end

#projectObject

Returns the value of attribute project.



6
7
8
# File 'lib/hookers/changelog/commit.rb', line 6

def project
  @project
end

Instance Method Details

#uriObject



14
15
16
# File 'lib/hookers/changelog/commit.rb', line 14

def uri
  project.commit_uri(self.id)
end