Class: AgentsControl::Doctor::Check

Inherits:
Struct
  • Object
show all
Defined in:
lib/agents_control/doctor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detail ⇒ Object

Returns the value of attribute detail

Returns:

  • (Object) —

    the current value of detail



11
12
13
# File 'lib/agents_control/doctor.rb', line 11

def detail
  @detail
end

#fix ⇒ Object

Returns the value of attribute fix

Returns:

  • (Object) —

    the current value of fix



11
12
13
# File 'lib/agents_control/doctor.rb', line 11

def fix
  @fix
end

#name ⇒ Object

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



11
12
13
# File 'lib/agents_control/doctor.rb', line 11

def name
  @name
end

#status ⇒ Object

Returns the value of attribute status

Returns:

  • (Object) —

    the current value of status



11
12
13
# File 'lib/agents_control/doctor.rb', line 11

def status
  @status
end

Instance Method Details

#failed? ⇒ Boolean

Returns:

  • (Boolean)


13
# File 'lib/agents_control/doctor.rb', line 13

def failed? = status == :fail

#icon ⇒ Object



14
# File 'lib/agents_control/doctor.rb', line 14

def icon = { ok: "✓", warn: "!", fail: "✗" }[status]

#ok? ⇒ Boolean

Returns:

  • (Boolean)


12
# File 'lib/agents_control/doctor.rb', line 12

def ok? = status == :ok