Class: FiberAudit::Location

Inherits:
Data
  • Object
show all
Defined in:
lib/fiber_audit/findings/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



4
5
6
# File 'lib/fiber_audit/findings/location.rb', line 4

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



4
5
6
# File 'lib/fiber_audit/findings/location.rb', line 4

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



4
5
6
# File 'lib/fiber_audit/findings/location.rb', line 4

def path
  @path
end

Instance Method Details

#to_h_for_jsonObject



5
6
7
# File 'lib/fiber_audit/findings/location.rb', line 5

def to_h_for_json
  { path: path, line: line, column: column }
end