Sha256: 0dd6e3a895a4e57e33a9c0136e0cbd895eb69c2965c33403f3b4fd586defba30

Contents?: true

Size: 254 Bytes

Versions: 5

Compression:

Stored size: 254 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

5 entries across 5 versions & 1 rubygems

Version Path
gistory-0.1.8 lib/gistory/commit.rb
gistory-0.1.7 lib/gistory/commit.rb
gistory-0.1.6 lib/gistory/commit.rb
gistory-0.1.5 lib/gistory/commit.rb
gistory-0.1.4 lib/gistory/commit.rb