Class: GHArchive::ReleaseEvent

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)


365
366
367
# File 'lib/gh-archive/events.rb', line 365

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

Instance Method Details

#actionObject



369
370
371
# File 'lib/gh-archive/events.rb', line 369

def action
    @payload['action']
end

#releaseObject



373
374
375
# File 'lib/gh-archive/events.rb', line 373

def release
    Release.new(@payload['release'])
end