Class: GHArchive::DeleteEvent

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)


347
348
349
# File 'lib/gh-archive/events.rb', line 347

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

Instance Method Details

#pusher_typeObject



359
360
361
# File 'lib/gh-archive/events.rb', line 359

def pusher_type
    @payload['pusher_type']
end

#refObject



351
352
353
# File 'lib/gh-archive/events.rb', line 351

def ref
    @payload['ref']
end

#ref_typeObject



355
356
357
# File 'lib/gh-archive/events.rb', line 355

def ref_type
    @payload['ref_type']
end