Class: Linterbot::Comment
- Inherits:
-
Object
- Object
- Linterbot::Comment
- Extended by:
- Forwardable
- Defined in:
- lib/linterbot/comment.rb
Instance Attribute Summary collapse
-
#patch_line_number ⇒ Object
Returns the value of attribute patch_line_number.
-
#sha ⇒ Object
Returns the value of attribute sha.
Instance Method Summary collapse
-
#initialize(sha:, hint:, patch_line_number:) ⇒ Comment
constructor
A new instance of Comment.
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_number ⇒ Object
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 |
#sha ⇒ Object
Returns the value of attribute sha.
8 9 10 |
# File 'lib/linterbot/comment.rb', line 8 def sha @sha end |