Class: SourceMonitor::Setup::DependencyChecker::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/source_monitor/setup/dependency_checker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#currentObject

Returns the value of attribute current

Returns:

  • (Object)

    the current value of current



15
16
17
# File 'lib/source_monitor/setup/dependency_checker.rb', line 15

def current
  @current
end

#expectedObject

Returns the value of attribute expected

Returns:

  • (Object)

    the current value of expected



15
16
17
# File 'lib/source_monitor/setup/dependency_checker.rb', line 15

def expected
  @expected
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



15
16
17
# File 'lib/source_monitor/setup/dependency_checker.rb', line 15

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



15
16
17
# File 'lib/source_monitor/setup/dependency_checker.rb', line 15

def name
  @name
end

#remediationObject

Returns the value of attribute remediation

Returns:

  • (Object)

    the current value of remediation



15
16
17
# File 'lib/source_monitor/setup/dependency_checker.rb', line 15

def remediation
  @remediation
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



15
16
17
# File 'lib/source_monitor/setup/dependency_checker.rb', line 15

def status
  @status
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/source_monitor/setup/dependency_checker.rb', line 32

def error?
  status == :error
end

#missing?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/source_monitor/setup/dependency_checker.rb', line 36

def missing?
  status == :missing
end

#ok?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/source_monitor/setup/dependency_checker.rb', line 24

def ok?
  status == :ok
end

#warning?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/source_monitor/setup/dependency_checker.rb', line 28

def warning?
  status == :warning
end