Class: Foobara::AWS::Check::Finding

Inherits:
Data
  • Object
show all
Defined in:
lib/foobara/aws/check.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actualObject (readonly)

Returns the value of attribute actual

Returns:

  • (Object)

    the current value of actual



46
47
48
# File 'lib/foobara/aws/check.rb', line 46

def actual
  @actual
end

#commandObject (readonly)

Returns the value of attribute command

Returns:

  • (Object)

    the current value of command



46
47
48
# File 'lib/foobara/aws/check.rb', line 46

def command
  @command
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



46
47
48
# File 'lib/foobara/aws/check.rb', line 46

def description
  @description
end

#expectedObject (readonly)

Returns the value of attribute expected

Returns:

  • (Object)

    the current value of expected



46
47
48
# File 'lib/foobara/aws/check.rb', line 46

def expected
  @expected
end

#okObject (readonly)

Returns the value of attribute ok

Returns:

  • (Object)

    the current value of ok



46
47
48
# File 'lib/foobara/aws/check.rb', line 46

def ok
  @ok
end

Instance Method Details

#to_sObject



47
48
49
# File 'lib/foobara/aws/check.rb', line 47

def to_s
  "#{ok ? "ok  " : "FAIL"} #{command.ljust(28)} #{description} (expected #{expected}, got #{actual})"
end