Class: GHArchive::ReleaseEvent
- Inherits:
-
Event
- Object
- Event
- GHArchive::ReleaseEvent
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
365
366
367
|
# File 'lib/gh-archive/events.rb', line 365
def self.fits?(json)
return json['type'] == "ReleaseEvent"
end
|
Instance Method Details
#action ⇒ Object
369
370
371
|
# File 'lib/gh-archive/events.rb', line 369
def action
@payload['action']
end
|
#release ⇒ Object
373
374
375
|
# File 'lib/gh-archive/events.rb', line 373
def release
Release.new(@payload['release'])
end
|