Class: Aireview::ModelChecker::Result
- Inherits:
-
Struct
- Object
- Struct
- Aireview::ModelChecker::Result
- Defined in:
- lib/aireview/model_checker.rb
Instance Attribute Summary collapse
-
#candidate ⇒ Object
Returns the value of attribute candidate.
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#seconds ⇒ Object
Returns the value of attribute seconds.
-
#stage ⇒ Object
Returns the value of attribute stage.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#candidate ⇒ Object
Returns the value of attribute candidate
49 50 51 |
# File 'lib/aireview/model_checker.rb', line 49 def candidate @candidate end |
#detail ⇒ Object
Returns the value of attribute detail
49 50 51 |
# File 'lib/aireview/model_checker.rb', line 49 def detail @detail end |
#seconds ⇒ Object
Returns the value of attribute seconds
49 50 51 |
# File 'lib/aireview/model_checker.rb', line 49 def seconds @seconds end |
#stage ⇒ Object
Returns the value of attribute stage
49 50 51 |
# File 'lib/aireview/model_checker.rb', line 49 def stage @stage end |
#status ⇒ Object
Returns the value of attribute 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 |