Sha256: c5eed451f94983d830f30a7660b20539b2ad87fc537dc095926b012466245a27
Contents?: true
Size: 253 Bytes
Versions: 4
Compression:
Stored size: 253 Bytes
Contents
# frozen_string_literal: true require 'date' module Gistory class Commit attr_reader :short_hash, :date def initialize(short_hash:, date:) @short_hash = short_hash @date = DateTime.parse(date.to_s) freeze end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gistory-0.1.3 | lib/gistory/commit.rb |
gistory-0.1.2 | lib/gistory/commit.rb |
gistory-0.1.1 | lib/gistory/commit.rb |
gistory-0.1.0 | lib/gistory/commit.rb |