Class: Wlog::GitCommit
- Inherits:
-
Object
- Object
- Wlog::GitCommit
- Defined in:
- lib/wlog/domain/git_commit.rb
Overview
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#commit ⇒ Object
Returns the value of attribute commit.
-
#message ⇒ Object
Returns the value of attribute message.
-
#shortlog ⇒ Object
Returns the value of attribute shortlog.
Instance Method Summary collapse
-
#initialize ⇒ GitCommit
constructor
A new instance of GitCommit.
Constructor Details
#initialize ⇒ GitCommit
Returns a new instance of GitCommit.
5 6 7 |
# File 'lib/wlog/domain/git_commit.rb', line 5 def initialize @commit = @author = @shortlog = @message = "" end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
9 10 11 |
# File 'lib/wlog/domain/git_commit.rb', line 9 def @author end |
#commit ⇒ Object
Returns the value of attribute commit.
9 10 11 |
# File 'lib/wlog/domain/git_commit.rb', line 9 def commit @commit end |
#message ⇒ Object
Returns the value of attribute message.
9 10 11 |
# File 'lib/wlog/domain/git_commit.rb', line 9 def @message end |
#shortlog ⇒ Object
Returns the value of attribute shortlog.
9 10 11 |
# File 'lib/wlog/domain/git_commit.rb', line 9 def shortlog @shortlog end |