Class: TimeCost::Commit
- Inherits:
-
Object
- Object
- TimeCost::Commit
- Defined in:
- lib/timecost/commit.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#commit ⇒ Object
Returns the value of attribute commit.
-
#date ⇒ Object
Returns the value of attribute date.
-
#note ⇒ Object
Returns the value of attribute note.
Instance Method Summary collapse
-
#initialize(commit) ⇒ Commit
constructor
A new instance of Commit.
Constructor Details
#initialize(commit) ⇒ Commit
Returns a new instance of Commit.
6 7 8 9 10 11 |
# File 'lib/timecost/commit.rb', line 6 def initialize commit @commit = commit @note = nil @author = nil @date = nil end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
5 6 7 |
# File 'lib/timecost/commit.rb', line 5 def @author end |
#commit ⇒ Object
Returns the value of attribute commit.
5 6 7 |
# File 'lib/timecost/commit.rb', line 5 def commit @commit end |
#date ⇒ Object
Returns the value of attribute date.
5 6 7 |
# File 'lib/timecost/commit.rb', line 5 def date @date end |
#note ⇒ Object
Returns the value of attribute note.
5 6 7 |
# File 'lib/timecost/commit.rb', line 5 def note @note end |