Class: Kamal::Lint::Finding

Inherits:
Struct
  • Object
show all
Defined in:
lib/kamal/lint/finding.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#check_idObject

Returns the value of attribute check_id

Returns:

  • the current value of check_id



5
6
7
# File 'lib/kamal/lint/finding.rb', line 5

def check_id
  @check_id
end

#columnObject

Returns the value of attribute column

Returns:

  • the current value of column



5
6
7
# File 'lib/kamal/lint/finding.rb', line 5

def column
  @column
end

#destinationObject

Returns the value of attribute destination

Returns:

  • the current value of destination



5
6
7
# File 'lib/kamal/lint/finding.rb', line 5

def destination
  @destination
end

#fileObject

Returns the value of attribute file

Returns:

  • the current value of file



5
6
7
# File 'lib/kamal/lint/finding.rb', line 5

def file
  @file
end

#lineObject

Returns the value of attribute line

Returns:

  • the current value of line



5
6
7
# File 'lib/kamal/lint/finding.rb', line 5

def line
  @line
end

#messageObject

Returns the value of attribute message

Returns:

  • the current value of message



5
6
7
# File 'lib/kamal/lint/finding.rb', line 5

def message
  @message
end

#severityObject

Returns the value of attribute severity

Returns:

  • the current value of severity



5
6
7
# File 'lib/kamal/lint/finding.rb', line 5

def severity
  @severity
end

Instance Method Details

#to_hObject



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/kamal/lint/finding.rb', line 15

def to_h
  {
    check: check_id,
    severity: severity.to_s,
    message: message,
    file: file,
    line: line,
    column: column,
    destination: destination
  }
end