Class: GHArchive::GollumEvent

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)


393
394
395
# File 'lib/gh-archive/events.rb', line 393

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

Instance Method Details

#pagesObject



397
398
399
# File 'lib/gh-archive/events.rb', line 397

def pages
    @payload[pages].map { |p| Page.new(p) }
end