Sha256: 795d217b7bb3587d15e822afea2a3b200cbaea626f05f11f76d547089629238c
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# encoding: UTF-8 module Rosette module Core # Represents a commit log. Commit logs track the status of individual # commits, what time the commit occurred, and how many phrases it contains. # # @!attribute [rw] repo_name # @return [String] the name of the repo the commit was found in. # @!attribute [rw] commit_id # @return [String] the git commit id. # @!attribute [rw] phrase_count # @return [Fixnum] the number of phrases found in this commit. # @!attribute [rw] status # @return [String] the [PhraseStatus] of this commit. # @!attribute [rw] commit_datetime # @return [DateTime] the time this commit was made. # @!attribute [rw] branch_name # @return [String] the name of the branch that contains this commit. class CommitLog def initialize(repo_name, commit_id, phrase_count = nil, status = nil, commit_datetime = nil, branch_name = nil) @repo_name = repo_name @commit_id = commit_id @phrase_count = phrase_count @status = status @commit_datetime = commit_datetime @branch_name = branch_name end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rosette-core-1.0.1 | lib/rosette/core/extractor/commit_log.rb |