Class: Gitt::Models::Commit
- Inherits:
-
Struct
- Object
- Struct
- Gitt::Models::Commit
- Includes:
- Directable, Trailable
- Defined in:
- lib/gitt/models/commit.rb
Overview
Represents commit details.
Instance Attribute Summary collapse
-
#author_email ⇒ Object
Returns the value of attribute author_email.
-
#author_name ⇒ Object
Returns the value of attribute author_name.
-
#authored_at ⇒ Object
Returns the value of attribute authored_at.
-
#authored_relative_at ⇒ Object
Returns the value of attribute authored_relative_at.
-
#body ⇒ Object
Returns the value of attribute body.
-
#body_lines ⇒ Object
Returns the value of attribute body_lines.
-
#body_paragraphs ⇒ Object
Returns the value of attribute body_paragraphs.
-
#committed_at ⇒ Object
Returns the value of attribute committed_at.
-
#committed_relative_at ⇒ Object
Returns the value of attribute committed_relative_at.
-
#committer_email ⇒ Object
Returns the value of attribute committer_email.
-
#committer_name ⇒ Object
Returns the value of attribute committer_name.
-
#deletions ⇒ Object
Returns the value of attribute deletions.
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#files_changed ⇒ Object
Returns the value of attribute files_changed.
-
#fingerprint ⇒ Object
Returns the value of attribute fingerprint.
-
#fingerprint_key ⇒ Object
Returns the value of attribute fingerprint_key.
-
#insertions ⇒ Object
Returns the value of attribute insertions.
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#sha ⇒ Object
Returns the value of attribute sha.
-
#signature ⇒ Object
Returns the value of attribute signature.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#trailers ⇒ Object
Returns the value of attribute trailers.
Instance Method Summary collapse
-
#initialize ⇒ Commit
constructor
A new instance of Commit.
Methods included from Trailable
#find_trailer, #find_trailers, #trailer_value_for, #trailer_values_for
Methods included from Directable
#amend?, #directive?, #fixup?, #prefix, #squash?
Constructor Details
#initialize ⇒ Commit
Returns a new instance of Commit.
38 39 40 41 |
# File 'lib/gitt/models/commit.rb', line 38 def initialize(**) super freeze end |
Instance Attribute Details
#author_email ⇒ Object
Returns the value of attribute author_email
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def @author_email end |
#author_name ⇒ Object
Returns the value of attribute author_name
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def @author_name end |
#authored_at ⇒ Object
Returns the value of attribute authored_at
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def @authored_at end |
#authored_relative_at ⇒ Object
Returns the value of attribute authored_relative_at
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def @authored_relative_at end |
#body ⇒ Object
Returns the value of attribute body
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def body @body end |
#body_lines ⇒ Object
Returns the value of attribute body_lines
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def body_lines @body_lines end |
#body_paragraphs ⇒ Object
Returns the value of attribute body_paragraphs
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def body_paragraphs @body_paragraphs end |
#committed_at ⇒ Object
Returns the value of attribute committed_at
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def committed_at @committed_at end |
#committed_relative_at ⇒ Object
Returns the value of attribute committed_relative_at
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def committed_relative_at @committed_relative_at end |
#committer_email ⇒ Object
Returns the value of attribute committer_email
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def committer_email @committer_email end |
#committer_name ⇒ Object
Returns the value of attribute committer_name
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def committer_name @committer_name end |
#deletions ⇒ Object
Returns the value of attribute deletions
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def deletions @deletions end |
#encoding ⇒ Object
Returns the value of attribute encoding
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def encoding @encoding end |
#files_changed ⇒ Object
Returns the value of attribute files_changed
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def files_changed @files_changed end |
#fingerprint ⇒ Object
Returns the value of attribute fingerprint
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def fingerprint @fingerprint end |
#fingerprint_key ⇒ Object
Returns the value of attribute fingerprint_key
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def fingerprint_key @fingerprint_key end |
#insertions ⇒ Object
Returns the value of attribute insertions
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def insertions @insertions end |
#lines ⇒ Object
Returns the value of attribute lines
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def lines @lines end |
#notes ⇒ Object
Returns the value of attribute notes
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def notes @notes end |
#raw ⇒ Object
Returns the value of attribute raw
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def raw @raw end |
#sha ⇒ Object
Returns the value of attribute sha
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def sha @sha end |
#signature ⇒ Object
Returns the value of attribute signature
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def signature @signature end |
#subject ⇒ Object
Returns the value of attribute subject
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def subject @subject end |
#trailers ⇒ Object
Returns the value of attribute trailers
8 9 10 |
# File 'lib/gitt/models/commit.rb', line 8 def trailers @trailers end |