Class: GithubContributions::Events::PullRequestReviewEvent

Inherits:
GithubContributions::Event show all
Defined in:
lib/github_contributions/events/pull_request_review_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_review_event.rb', line 4

def payload
  review
end

#pull_requestObject



12
13
14
# File 'lib/github_contributions/events/pull_request_review_event.rb', line 12

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

#reviewObject



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

def review
  @review ||= GithubObjects::Review.new(data.payload.review)
end