Class: OpenC3::ScriptStatus
Overview
Helper class to collect information about the running scripts like pass / fail counts
Direct Known Subclasses
Constant Summary collapse
- @@instance =
nil
Instance Attribute Summary collapse
-
#fail_count ⇒ Object
Returns the value of attribute fail_count.
-
#pass_count ⇒ Object
Returns the value of attribute pass_count.
-
#skip_count ⇒ Object
Returns the value of attribute skip_count.
-
#status ⇒ Object
Returns the value of attribute status.
-
#total ⇒ Object
Returns the value of attribute total.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ScriptStatus
constructor
A new instance of ScriptStatus.
Constructor Details
#initialize ⇒ ScriptStatus
Returns a new instance of ScriptStatus.
498 499 500 501 502 503 504 |
# File 'lib/openc3/script/suite.rb', line 498 def initialize @status = '' @pass_count = 0 @skip_count = 0 @fail_count = 0 @total = 1 end |
Instance Attribute Details
#fail_count ⇒ Object
Returns the value of attribute fail_count.
493 494 495 |
# File 'lib/openc3/script/suite.rb', line 493 def fail_count @fail_count end |
#pass_count ⇒ Object
Returns the value of attribute pass_count.
491 492 493 |
# File 'lib/openc3/script/suite.rb', line 491 def pass_count @pass_count end |
#skip_count ⇒ Object
Returns the value of attribute skip_count.
492 493 494 |
# File 'lib/openc3/script/suite.rb', line 492 def skip_count @skip_count end |
#status ⇒ Object
Returns the value of attribute status.
490 491 492 |
# File 'lib/openc3/script/suite.rb', line 490 def status @status end |
#total ⇒ Object
Returns the value of attribute total.
494 495 496 |
# File 'lib/openc3/script/suite.rb', line 494 def total @total end |
Class Method Details
.instance ⇒ Object
514 515 516 517 |
# File 'lib/openc3/script/suite.rb', line 514 def self.instance @@instance = self.new unless @@instance @@instance end |