Class: GHArchive::IssuesEvent
- Inherits:
-
Event
- Object
- Event
- GHArchive::IssuesEvent
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
162
163
164
|
# File 'lib/gh-archive/events.rb', line 162
def self.fits?(json)
return json['type'] == "IssuesEvent"
end
|
Instance Method Details
#action ⇒ Object
166
167
168
|
# File 'lib/gh-archive/events.rb', line 166
def action
@payload['action']
end
|
#issue ⇒ Object
170
171
172
|
# File 'lib/gh-archive/events.rb', line 170
def issue
Issue.new(@payload['issue'])
end
|