Class: LastCommit
- Inherits:
-
Object
- Object
- LastCommit
- Defined in:
- lib/last_commit.rb
Instance Method Summary collapse
- #author ⇒ Object
-
#initialize(git_repository_path, branch) ⇒ LastCommit
constructor
A new instance of LastCommit.
- #message ⇒ Object
- #sha ⇒ Object
Constructor Details
#initialize(git_repository_path, branch) ⇒ LastCommit
Returns a new instance of LastCommit.
4 5 6 7 |
# File 'lib/last_commit.rb', line 4 def initialize(git_repository_path, branch) self.git_repository_path = git_repository_path self.branch = branch end |
Instance Method Details
#author ⇒ Object
9 10 11 |
# File 'lib/last_commit.rb', line 9 def last_commit..name end |
#message ⇒ Object
13 14 15 |
# File 'lib/last_commit.rb', line 13 def last_commit. end |
#sha ⇒ Object
17 18 19 |
# File 'lib/last_commit.rb', line 17 def sha last_commit.sha end |