Class: Vcvars::Doctor::Check

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



16
17
18
# File 'lib/vcvars/doctor.rb', line 16

def detail
  @detail
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



16
17
18
# File 'lib/vcvars/doctor.rb', line 16

def label
  @label
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



16
17
18
# File 'lib/vcvars/doctor.rb', line 16

def status
  @status
end

Instance Method Details

#iconObject

:ok | :warn | :fail | :info



18
19
20
# File 'lib/vcvars/doctor.rb', line 18

def icon
  { ok: "[ OK ]", warn: "[WARN]", fail: "[FAIL]", info: "[INFO]" }[status]
end