Class: Hecks::Bluebook::ModelCheck::Finding

Inherits:
Struct
  • Object
show all
Defined in:
lib/hecks/bluebook/model_check.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



20
21
22
# File 'lib/hecks/bluebook/model_check.rb', line 20

def kind
  @kind
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



20
21
22
# File 'lib/hecks/bluebook/model_check.rb', line 20

def message
  @message
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



20
21
22
# File 'lib/hecks/bluebook/model_check.rb', line 20

def severity
  @severity
end

#subjectObject

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



20
21
22
# File 'lib/hecks/bluebook/model_check.rb', line 20

def subject
  @subject
end

Instance Method Details

#to_sObject



21
# File 'lib/hecks/bluebook/model_check.rb', line 21

def to_s = "#{severity.to_s.upcase.ljust(7)} #{kind.to_s.ljust(20)} #{subject}#{message}"