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



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

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

#distinctObject



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

def distinct
    @payload['distinct']
end

#messageObject



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

def message
    @payload['message']
end

#shaObject



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

def sha
    @payload['sha']
end

#urlObject



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

def url
    @payload['url']
end