Class: GHArchive::CreateEvent
- Inherits:
-
Event
- Object
- Event
- GHArchive::CreateEvent
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
190
191
192
|
# File 'lib/gh-archive/events.rb', line 190
def self.fits?(json)
return json['type'] == "CreateEvent"
end
|
Instance Method Details
#description ⇒ Object
206
207
208
|
# File 'lib/gh-archive/events.rb', line 206
def description
@payload['description']
end
|
#master_branch ⇒ Object
202
203
204
|
# File 'lib/gh-archive/events.rb', line 202
def master_branch
@payload['master_branch']
end
|
#pusher_type ⇒ Object
210
211
212
|
# File 'lib/gh-archive/events.rb', line 210
def pusher_type
@payload['pusher_type']
end
|
#ref ⇒ Object
194
195
196
|
# File 'lib/gh-archive/events.rb', line 194
def ref
@payload['ref']
end
|
#ref_type ⇒ Object
198
199
200
|
# File 'lib/gh-archive/events.rb', line 198
def ref_type
@payload['ref_type']
end
|