Class: Insika::EnvSchema::Finding

Inherits:
Data
  • Object
show all
Defined in:
lib/insika/env_schema.rb

Overview

A problem (or an :ok note) about the environment. dry/serializable — the proc- free shape Doctor and insika env both render.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



65
66
67
# File 'lib/insika/env_schema.rb', line 65

def key
  @key
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



65
66
67
# File 'lib/insika/env_schema.rb', line 65

def kind
  @kind
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



65
66
67
# File 'lib/insika/env_schema.rb', line 65

def message
  @message
end

#severityObject (readonly)

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



65
66
67
# File 'lib/insika/env_schema.rb', line 65

def severity
  @severity
end

Instance Method Details

#to_hObject



66
# File 'lib/insika/env_schema.rb', line 66

def to_h = { "key" => key, "kind" => kind.to_s, "severity" => severity.to_s, "message" => message }