Class: Typocop::Comment
- Inherits:
-
Object
- Object
- Typocop::Comment
- Defined in:
- lib/typocop/comment.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#user_login ⇒ Object
readonly
Returns the value of attribute user_login.
Instance Method Summary collapse
-
#initialize(id, path, line, body, user_login) ⇒ Comment
constructor
A new instance of Comment.
Constructor Details
#initialize(id, path, line, body, user_login) ⇒ Comment
Returns a new instance of Comment.
5 6 7 8 9 10 11 |
# File 'lib/typocop/comment.rb', line 5 def initialize(id, path, line, body, user_login) @id = id @path = path @line = line @body = body @user_login = user_login end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/typocop/comment.rb', line 3 def body @body end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/typocop/comment.rb', line 3 def id @id end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
3 4 5 |
# File 'lib/typocop/comment.rb', line 3 def line @line end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/typocop/comment.rb', line 3 def path @path end |
#user_login ⇒ Object (readonly)
Returns the value of attribute user_login.
3 4 5 |
# File 'lib/typocop/comment.rb', line 3 def user_login @user_login end |