Class: Linterbot::Comment

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/linterbot/comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sha:, hint:, patch_line_number:) ⇒ Comment

Returns a new instance of Comment.



16
17
18
19
20
# File 'lib/linterbot/comment.rb', line 16

def initialize(sha:, hint:, patch_line_number:)
  @sha = sha
  @hint = hint
  @patch_line_number = patch_line_number
end

Instance Attribute Details

#patch_line_numberObject

Returns the value of attribute patch_line_number.



9
10
11
# File 'lib/linterbot/comment.rb', line 9

def patch_line_number
  @patch_line_number
end

#shaObject

Returns the value of attribute sha.



8
9
10
# File 'lib/linterbot/comment.rb', line 8

def sha
  @sha
end