Sha256: 2ade2bc7f06ddb2d96c495aadc0a3599ff78b361c4d27e0adb1c10696ff5b879

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

module Githu3
  class Commit < Githu3::Resource
    
    embeds_one :committer,  :class_name => :user
    embeds_one :author,     :class_name => :user
    embeds_one :commit,     :class_name => :git_commit
    
    def message
      _attributes.message || commit.message rescue nil
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
githu3-0.0.8 lib/githu3/commit.rb
githu3-0.0.7 lib/githu3/commit.rb
githu3-0.0.6 lib/githu3/commit.rb
githu3-0.0.5 lib/githu3/commit.rb
githu3-0.0.4 lib/githu3/commit.rb