Class: Deprecool::Finder::Offense

Inherits:
Struct
  • Object
show all
Defined in:
lib/deprecool/finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def column
  @column
end

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def confidence
  @confidence
end

#deprecated_inObject

Returns the value of attribute deprecated_in

Returns:

  • (Object)

    the current value of deprecated_in



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def deprecated_in
  @deprecated_in
end

#effortObject

Returns the value of attribute effort

Returns:

  • (Object)

    the current value of effort



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def effort
  @effort
end

#end_columnObject

Returns the value of attribute end_column

Returns:

  • (Object)

    the current value of end_column



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def end_column
  @end_column
end

#end_lineObject

Returns the value of attribute end_line

Returns:

  • (Object)

    the current value of end_line



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def end_line
  @end_line
end

#file_pathObject

Returns the value of attribute file_path

Returns:

  • (Object)

    the current value of file_path



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def file_path
  @file_path
end

#gemObject

Returns the value of attribute gem

Returns:

  • (Object)

    the current value of gem



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def gem
  @gem
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def id
  @id
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def line
  @line
end

#referenceObject

Returns the value of attribute reference

Returns:

  • (Object)

    the current value of reference



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def reference
  @reference
end

#removed_inObject

Returns the value of attribute removed_in

Returns:

  • (Object)

    the current value of removed_in



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def removed_in
  @removed_in
end

#snippetObject

Returns the value of attribute snippet

Returns:

  • (Object)

    the current value of snippet



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def snippet
  @snippet
end

#source_lineObject

Returns the value of attribute source_line

Returns:

  • (Object)

    the current value of source_line



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def source_line
  @source_line
end

#suggestionObject

Returns the value of attribute suggestion

Returns:

  • (Object)

    the current value of suggestion



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def suggestion
  @suggestion
end

#summaryObject

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def summary
  @summary
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



123
124
125
# File 'lib/deprecool/finder.rb', line 123

def title
  @title
end

Instance Method Details

#locationObject



127
128
129
# File 'lib/deprecool/finder.rb', line 127

def location
  "#{file_path}:#{line}:#{column + 1}"
end