Class: Milestoner::Models::Commit
- Inherits:
-
Struct
- Object
- Struct
- Milestoner::Models::Commit
- Includes:
- Gitt::Directable
- Defined in:
- lib/milestoner/models/commit.rb
Overview
Represents an enriched commit.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Commit
constructor
A new instance of Commit.
Constructor Details
#initialize ⇒ Commit
Returns a new instance of Commit.
39 40 41 42 |
# File 'lib/milestoner/models/commit.rb', line 39 def initialize(**) super freeze end |
Class Method Details
.for(commit) ⇒ Object
37 |
# File 'lib/milestoner/models/commit.rb', line 37 def self.for(commit, **) = new(**commit.to_h.slice(*COMMIT_COMMON_ATTRIBUTES), **) |