Class: GithubContributions::Events::PullRequestEvent

Inherits:
GithubContributions::Event show all
Defined in:
lib/github_contributions/events/pull_request_event.rb

Instance Attribute Summary

Attributes inherited from GithubContributions::Event

#data

Instance Method Summary collapse

Methods inherited from GithubContributions::Event

#action, #actor, #created_at, #initialize, #name, #org

Constructor Details

This class inherits a constructor from GithubContributions::Event

Instance Method Details

#payloadObject



4
5
6
# File 'lib/github_contributions/events/pull_request_event.rb', line 4

def payload
  pull_request
end

#pull_requestObject



8
9
10
# File 'lib/github_contributions/events/pull_request_event.rb', line 8

def pull_request
  @pull_request ||= GithubObjects::PullRequest.new(data.payload.pull_request)
end