Class: Gitt::Models::Commit

Inherits:
Struct
  • Object
show all
Includes:
Directable, Trailable
Defined in:
lib/gitt/models/commit.rb

Overview

Represents commit details.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeCommit

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_emailObject

Returns the value of attribute author_email

Returns:

  • (Object)

    the current value of author_email



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def author_email
  @author_email
end

#author_nameObject

Returns the value of attribute author_name

Returns:

  • (Object)

    the current value of author_name



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def author_name
  @author_name
end

#authored_atObject

Returns the value of attribute authored_at

Returns:

  • (Object)

    the current value of authored_at



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def authored_at
  @authored_at
end

#authored_relative_atObject

Returns the value of attribute authored_relative_at

Returns:

  • (Object)

    the current value of authored_relative_at



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def authored_relative_at
  @authored_relative_at
end

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def body
  @body
end

#body_linesObject

Returns the value of attribute body_lines

Returns:

  • (Object)

    the current value of body_lines



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def body_lines
  @body_lines
end

#body_paragraphsObject

Returns the value of attribute body_paragraphs

Returns:

  • (Object)

    the current value of body_paragraphs



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def body_paragraphs
  @body_paragraphs
end

#committed_atObject

Returns the value of attribute committed_at

Returns:

  • (Object)

    the current value of committed_at



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def committed_at
  @committed_at
end

#committed_relative_atObject

Returns the value of attribute committed_relative_at

Returns:

  • (Object)

    the current value of committed_relative_at



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def committed_relative_at
  @committed_relative_at
end

#committer_emailObject

Returns the value of attribute committer_email

Returns:

  • (Object)

    the current value of committer_email



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def committer_email
  @committer_email
end

#committer_nameObject

Returns the value of attribute committer_name

Returns:

  • (Object)

    the current value of committer_name



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def committer_name
  @committer_name
end

#deletionsObject

Returns the value of attribute deletions

Returns:

  • (Object)

    the current value of deletions



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def deletions
  @deletions
end

#encodingObject

Returns the value of attribute encoding

Returns:

  • (Object)

    the current value of encoding



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def encoding
  @encoding
end

#files_changedObject

Returns the value of attribute files_changed

Returns:

  • (Object)

    the current value of files_changed



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def files_changed
  @files_changed
end

#fingerprintObject

Returns the value of attribute fingerprint

Returns:

  • (Object)

    the current value of fingerprint



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def fingerprint
  @fingerprint
end

#fingerprint_keyObject

Returns the value of attribute fingerprint_key

Returns:

  • (Object)

    the current value of fingerprint_key



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def fingerprint_key
  @fingerprint_key
end

#insertionsObject

Returns the value of attribute insertions

Returns:

  • (Object)

    the current value of insertions



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def insertions
  @insertions
end

#linesObject

Returns the value of attribute lines

Returns:

  • (Object)

    the current value of lines



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def lines
  @lines
end

#notesObject

Returns the value of attribute notes

Returns:

  • (Object)

    the current value of notes



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def notes
  @notes
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def raw
  @raw
end

#shaObject

Returns the value of attribute sha

Returns:

  • (Object)

    the current value of sha



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def sha
  @sha
end

#signatureObject

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def signature
  @signature
end

#subjectObject

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def subject
  @subject
end

#trailersObject

Returns the value of attribute trailers

Returns:

  • (Object)

    the current value of trailers



8
9
10
# File 'lib/gitt/models/commit.rb', line 8

def trailers
  @trailers
end