Sha256: 306f75869cba7f54018fa28349ec0c2e38a959b1256d9a96a1545b1993268509
Contents?: true
Size: 528 Bytes
Versions: 4
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true module Git class GitCommit attr_reader :repository_name, :sha, :message, :commit_date, :author_name, :author_email def initialize(sha, message, commit_date, author_name, author_email, repository_name:) @sha = sha @message = message @commit_date = commit_date @author_email = author_email @author_name = author_name @repository_name = repository_name end def to_s sha end def ==(other) sha == other.sha end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
git_lib-2.1.0 | lib/git/git_commit.rb |
git_lib-2.0.0 | lib/git/git_commit.rb |
git_lib-2.0.0.pre.1 | lib/git/git_commit.rb |
git_lib-1.3.0.pre.1 | lib/git/git_commit.rb |