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



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def column
  @column
end

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def confidence
  @confidence
end

#deprecated_inObject

Returns the value of attribute deprecated_in

Returns:

  • (Object)

    the current value of deprecated_in



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def deprecated_in
  @deprecated_in
end

#effortObject

Returns the value of attribute effort

Returns:

  • (Object)

    the current value of effort



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def effort
  @effort
end

#end_columnObject

Returns the value of attribute end_column

Returns:

  • (Object)

    the current value of end_column



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def end_column
  @end_column
end

#end_lineObject

Returns the value of attribute end_line

Returns:

  • (Object)

    the current value of end_line



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def end_line
  @end_line
end

#file_pathObject

Returns the value of attribute file_path

Returns:

  • (Object)

    the current value of file_path



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def file_path
  @file_path
end

#gemObject

Returns the value of attribute gem

Returns:

  • (Object)

    the current value of gem



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def gem
  @gem
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def id
  @id
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def line
  @line
end

#referenceObject

Returns the value of attribute reference

Returns:

  • (Object)

    the current value of reference



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def reference
  @reference
end

#removed_inObject

Returns the value of attribute removed_in

Returns:

  • (Object)

    the current value of removed_in



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def removed_in
  @removed_in
end

#snippetObject

Returns the value of attribute snippet

Returns:

  • (Object)

    the current value of snippet



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def snippet
  @snippet
end

#source_lineObject

Returns the value of attribute source_line

Returns:

  • (Object)

    the current value of source_line



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def source_line
  @source_line
end

#suggestionObject

Returns the value of attribute suggestion

Returns:

  • (Object)

    the current value of suggestion



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def suggestion
  @suggestion
end

#summaryObject

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def summary
  @summary
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



120
121
122
# File 'lib/deprecool/finder.rb', line 120

def title
  @title
end

Instance Method Details

#locationObject



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

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