Class: Aireview::ModelChecker::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/aireview/model_checker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#candidate ⇒ Object

Returns the value of attribute candidate

Returns:

  • (Object) —

    the current value of candidate



49
50
51
# File 'lib/aireview/model_checker.rb', line 49

def candidate
  @candidate
end

#detail ⇒ Object

Returns the value of attribute detail

Returns:

  • (Object) —

    the current value of detail



49
50
51
# File 'lib/aireview/model_checker.rb', line 49

def detail
  @detail
end

#seconds ⇒ Object

Returns the value of attribute seconds

Returns:

  • (Object) —

    the current value of seconds



49
50
51
# File 'lib/aireview/model_checker.rb', line 49

def seconds
  @seconds
end

#stage ⇒ Object

Returns the value of attribute stage

Returns:

  • (Object) —

    the current value of stage



49
50
51
# File 'lib/aireview/model_checker.rb', line 49

def stage
  @stage
end

#status ⇒ Object

Returns the value of attribute status

Returns:

  • (Object) —

    the current value of status



49
50
51
# File 'lib/aireview/model_checker.rb', line 49

def status
  @status
end

Instance Method Details

#to_s ⇒ Object



50
51
52
53
54
# File 'lib/aireview/model_checker.rb', line 50

def to_s
  text = seconds ? "#{status} (#{format('%.1fs', seconds)})" : status.to_s
  text = "#{text}: #{detail}" if detail
  "#{candidate.to_s.ljust(32)} #{stage.ljust(8)} #{text}"
end