class GHArchive::PullRequestEvent

Public Class Methods

fits?(json) click to toggle source
# File lib/gh-archive/events.rb, line 122
def self.fits?(json)
    return json['type'] == "PullRequestEvent"
end

Public Instance Methods

action() click to toggle source
# File lib/gh-archive/events.rb, line 126
def action
    @payload['action']
end
number() click to toggle source
# File lib/gh-archive/events.rb, line 130
def number
    @payload['number']
end
pull_request() click to toggle source
# File lib/gh-archive/events.rb, line 134
def pull_request
    PullRequest.new(@payload['pull_request'])
end