Class: GHArchive::Commit

Inherits:
Entity
  • Object
show all
Defined in:
lib/gh-archive/entities.rb

Instance Method Summary collapse

Methods inherited from Entity

#initialize

Constructor Details

This class inherits a constructor from GHArchive::Entity

Instance Method Details

#authorObject



19
20
21
22
23
24
# File 'lib/gh-archive/entities.rb', line 19

def author
    CommitAuthor.new(
        @payload['author']['email'],
        @payload['author']['name']
    )
end

#distinctObject



30
31
32
# File 'lib/gh-archive/entities.rb', line 30

def distinct
    @payload['distinct']
end

#messageObject



26
27
28
# File 'lib/gh-archive/entities.rb', line 26

def message
    @payload['message']
end

#shaObject



15
16
17
# File 'lib/gh-archive/entities.rb', line 15

def sha
    @payload['sha']
end

#urlObject



34
35
36
# File 'lib/gh-archive/entities.rb', line 34

def url
    @payload['url']
end