class GHArchive::CommitCommentEvent
Public Class Methods
fits?(json)
click to toggle source
# File lib/gh-archive/events.rb, line 76 def self.fits?(json) return json['type'] == "CommitCommentEvent" end
Public Instance Methods
comment_body()
click to toggle source
# File lib/gh-archive/events.rb, line 108 def comment_body @payload['comment']['body'] end
comment_commit_id()
click to toggle source
# File lib/gh-archive/events.rb, line 104 def comment_commit_id @payload['comment']['commit_id'] end
comment_created_at()
click to toggle source
# File lib/gh-archive/events.rb, line 112 def comment_created_at Time.parse(@payload['comment']['created_at']) end
comment_id()
click to toggle source
# File lib/gh-archive/events.rb, line 80 def comment_id @payload['comment']['id'] end
comment_line()
click to toggle source
# File lib/gh-archive/events.rb, line 96 def comment_line @payload['comment']['line'] end
comment_path()
click to toggle source
# File lib/gh-archive/events.rb, line 100 def comment_path @payload['comment']['path'] end
comment_position()
click to toggle source
# File lib/gh-archive/events.rb, line 92 def comment_position @payload['comment']['position'] end
comment_updated_at()
click to toggle source
# File lib/gh-archive/events.rb, line 116 def comment_updated_at Time.parse(@payload['comment']['updated_at']) end
comment_url()
click to toggle source
# File lib/gh-archive/events.rb, line 84 def comment_url @payload['comment']['url'] end
comment_user()
click to toggle source
# File lib/gh-archive/events.rb, line 88 def comment_user User.new(@payload['comment']['author']) end