Class: GHArchive::PullRequestReviewCommentEvent
- Inherits:
-
Event
- Object
- Event
- GHArchive::PullRequestReviewCommentEvent
show all
- Defined in:
- lib/gh-archive/events.rb
Constant Summary
Constants inherited
from Event
Event::IMPLEMENTATIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Event
#actor, #created_at, #initialize, #json, parse, #public?, #repo
Class Method Details
.fits?(json) ⇒ Boolean
140
141
142
|
# File 'lib/gh-archive/events.rb', line 140
def self.fits?(json)
return json['type'] == "PullRequestReviewCommentEvent"
end
|
Instance Method Details
#action ⇒ Object
144
145
146
|
# File 'lib/gh-archive/events.rb', line 144
def action
@payload['action']
end
|
156
157
158
|
# File 'lib/gh-archive/events.rb', line 156
def
PullRequestComment.new(@payload['comment'])
end
|
#number ⇒ Object
148
149
150
|
# File 'lib/gh-archive/events.rb', line 148
def number
@payload['number']
end
|
#pull_request ⇒ Object
152
153
154
|
# File 'lib/gh-archive/events.rb', line 152
def pull_request
PullRequest.new(@payload['pull_request'])
end
|