Class: Vizcore::CLISupport::Doctor::Check

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



14
15
16
# File 'lib/vizcore/cli/doctor.rb', line 14

def message
  @message
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



14
15
16
# File 'lib/vizcore/cli/doctor.rb', line 14

def name
  @name
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



14
15
16
# File 'lib/vizcore/cli/doctor.rb', line 14

def status
  @status
end

Instance Method Details

#failure?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/vizcore/cli/doctor.rb', line 19

def failure?
  status == :fail
end

#ok?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/vizcore/cli/doctor.rb', line 15

def ok?
  status == :ok
end