Class: SCV::Objects::Commit
- Inherits:
-
VCSToolkit::Objects::Commit
- Object
- VCSToolkit::Objects::Commit
- SCV::Objects::Commit
- Defined in:
- lib/scv/objects/commit.rb
Instance Method Summary collapse
- #hash_objects ⇒ Object
-
#initialize(date:, **kwargs) ⇒ Commit
constructor
A new instance of Commit.
Constructor Details
#initialize(date:, **kwargs) ⇒ Commit
Returns a new instance of Commit.
8 9 10 11 12 13 |
# File 'lib/scv/objects/commit.rb', line 8 def initialize(date:, **kwargs) # Parse the date on deserialization date = DateTime.parse date if date.is_a? String super end |
Instance Method Details
#hash_objects ⇒ Object
15 16 17 |
# File 'lib/scv/objects/commit.rb', line 15 def hash_objects [@message, @tree, parents_for_hash, @author, @date.to_s] end |