Class: GHArchive::CreateEvent

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)


190
191
192
# File 'lib/gh-archive/events.rb', line 190

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

Instance Method Details

#descriptionObject



206
207
208
# File 'lib/gh-archive/events.rb', line 206

def description
    @payload['description']
end

#master_branchObject



202
203
204
# File 'lib/gh-archive/events.rb', line 202

def master_branch
    @payload['master_branch']
end

#pusher_typeObject



210
211
212
# File 'lib/gh-archive/events.rb', line 210

def pusher_type
    @payload['pusher_type']
end

#refObject



194
195
196
# File 'lib/gh-archive/events.rb', line 194

def ref
    @payload['ref']
end

#ref_typeObject



198
199
200
# File 'lib/gh-archive/events.rb', line 198

def ref_type
    @payload['ref_type']
end