Class: GoldenRose::ChildItem
- Inherits:
-
SubtestItem
- Object
- SubtestItem
- GoldenRose::ChildItem
- Defined in:
- lib/golden_rose/child_item.rb
Instance Attribute Summary collapse
-
#failures ⇒ Object
readonly
Returns the value of attribute failures.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Attributes inherited from SubtestItem
Instance Method Summary collapse
-
#initialize(source_subtest) ⇒ ChildItem
constructor
A new instance of ChildItem.
Methods inherited from SubtestItem
Constructor Details
#initialize(source_subtest) ⇒ ChildItem
Returns a new instance of ChildItem.
8 9 10 11 12 13 14 |
# File 'lib/golden_rose/child_item.rb', line 8 def initialize(source_subtest) @status = source_subtest["TestStatus"].downcase set_time(source_subtest) set_failures(source_subtest) super end |
Instance Attribute Details
#failures ⇒ Object (readonly)
Returns the value of attribute failures.
6 7 8 |
# File 'lib/golden_rose/child_item.rb', line 6 def failures @failures end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/golden_rose/child_item.rb', line 6 def status @status end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
6 7 8 |
# File 'lib/golden_rose/child_item.rb', line 6 def time @time end |