Class: Hecks::Ports::Agent::Finding

Inherits:
Struct
  • Object
show all
Defined in:
lib/hecks/ports/agent.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



97
98
99
# File 'lib/hecks/ports/agent.rb', line 97

def kind
  @kind
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



97
98
99
# File 'lib/hecks/ports/agent.rb', line 97

def message
  @message
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



97
98
99
# File 'lib/hecks/ports/agent.rb', line 97

def severity
  @severity
end

#subjectObject

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



97
98
99
# File 'lib/hecks/ports/agent.rb', line 97

def subject
  @subject
end

Instance Method Details

#to_sObject



98
# File 'lib/hecks/ports/agent.rb', line 98

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