Class: GHArchive::CommitCommentEvent
- Inherits:
-
Event
- Object
- Event
- GHArchive::CommitCommentEvent
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
76
77
78
|
# File 'lib/gh-archive/events.rb', line 76
def self.fits?(json)
return json['type'] == "CommitCommentEvent"
end
|
Instance Method Details
#comment_body ⇒ Object
108
109
110
|
# File 'lib/gh-archive/events.rb', line 108
def comment_body
@payload['comment']['body']
end
|
104
105
106
|
# File 'lib/gh-archive/events.rb', line 104
def
@payload['comment']['commit_id']
end
|
112
113
114
|
# File 'lib/gh-archive/events.rb', line 112
def
Time.parse(@payload['comment']['created_at'])
end
|
80
81
82
|
# File 'lib/gh-archive/events.rb', line 80
def
@payload['comment']['id']
end
|
96
97
98
|
# File 'lib/gh-archive/events.rb', line 96
def
@payload['comment']['line']
end
|
100
101
102
|
# File 'lib/gh-archive/events.rb', line 100
def
@payload['comment']['path']
end
|
92
93
94
|
# File 'lib/gh-archive/events.rb', line 92
def
@payload['comment']['position']
end
|
116
117
118
|
# File 'lib/gh-archive/events.rb', line 116
def
Time.parse(@payload['comment']['updated_at'])
end
|
84
85
86
|
# File 'lib/gh-archive/events.rb', line 84
def
@payload['comment']['url']
end
|
88
89
90
|
# File 'lib/gh-archive/events.rb', line 88
def
User.new(@payload['comment']['author'])
end
|