Class: Typocop::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/typocop/comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, )
  @id = id
  @path = path
  @line = line
  @body = body
  @user_login = 
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



3
4
5
# File 'lib/typocop/comment.rb', line 3

def body
  @body
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/typocop/comment.rb', line 3

def id
  @id
end

#lineObject (readonly)

Returns the value of attribute line.



3
4
5
# File 'lib/typocop/comment.rb', line 3

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/typocop/comment.rb', line 3

def path
  @path
end

#user_loginObject (readonly)

Returns the value of attribute user_login.



3
4
5
# File 'lib/typocop/comment.rb', line 3

def 
  @user_login
end