Sha256: 95fe1468dcb933f823a18d53f76069b875f25faea303a2639c7c461e886bce9e

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

module Octogate
  class GH::Commit
    include Model

    attr_reader :id, :distinct, :message, :timestamp, :url, :author, :commiter, :added, :removed, :modified

    def initialize(**args)
      new_args = args.deep_symbolize_keys
      new_args[:author] = GH::User.new(new_args[:author]) if new_args[:author]
      new_args[:committer] = GH::User.new(new_args[:committer]) if new_args[:committer]
      super(new_args)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
octogate-0.1.0 lib/octogate/gh/commit.rb