Sha256: 77ddb45ab329d35e314a526f07ef08481f2853754bac0532950c17da08c2ce0e
Contents?: true
Size: 845 Bytes
Versions: 1
Compression:
Stored size: 845 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.5.0.beta1 | app/adapters/houston/adapters/version_control/commit.rb |