Sha256: e746f91d33dea83f7c2ef679fc02f6b910a94b420c8bf0df06bc3d325fd801d9
Contents?: true
Size: 813 Bytes
Versions: 17
Compression:
Stored size: 813 Bytes
Contents
module Houston module Adapters module VersionControl class Commit def initialize(attributes={}) @sha = attributes[:sha] @parent_sha = attributes[:parent_sha] @message = attributes[:message] @authored_at = attributes[:authored_at] @author_name = attributes[:author_name] @author_email = attributes[:author_email] @committed_at = attributes[:committed_at] @committer_name = attributes[:committer_name] @committer_email = attributes[:committer_email] end attr_reader :sha, :parent_sha, :message, :authored_at, :author_name, :author_email, :committed_at, :committer_name, :committer_email def to_s sha[0...7] end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems