Class: Clickwrap::Doctor::Finding

Inherits:
Data
  • Object
show all
Defined in:
lib/clickwrap/doctor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



27
28
29
# File 'lib/clickwrap/doctor.rb', line 27

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



27
28
29
# File 'lib/clickwrap/doctor.rb', line 27

def status
  @status
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


28
# File 'lib/clickwrap/doctor.rb', line 28

def ok? = status == :ok

#problem?Boolean

Returns:

  • (Boolean)


30
# File 'lib/clickwrap/doctor.rb', line 30

def problem? = status == :problem

#to_sObject



32
# File 'lib/clickwrap/doctor.rb', line 32

def to_s = "#{SYMBOLS.fetch(status, "?")} #{message}"

#warning?Boolean

Returns:

  • (Boolean)


29
# File 'lib/clickwrap/doctor.rb', line 29

def warning? = status == :warning