Class: GHArchive::PullRequestReviewCommentEvent

Inherits:
Event
  • Object
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

Constructor Details

This class inherits a constructor from GHArchive::Event

Class Method Details

.fits?(json) ⇒ Boolean

Returns:

  • (Boolean)


140
141
142
# File 'lib/gh-archive/events.rb', line 140

def self.fits?(json)
    return json['type'] == "PullRequestReviewCommentEvent"
end

Instance Method Details

#actionObject



144
145
146
# File 'lib/gh-archive/events.rb', line 144

def action
    @payload['action']
end

#commentObject



156
157
158
# File 'lib/gh-archive/events.rb', line 156

def comment
    PullRequestComment.new(@payload['comment'])
end

#numberObject



148
149
150
# File 'lib/gh-archive/events.rb', line 148

def number
    @payload['number']
end

#pull_requestObject



152
153
154
# File 'lib/gh-archive/events.rb', line 152

def pull_request
    PullRequest.new(@payload['pull_request'])
end