Class: GoldenRose::ChildItem

Inherits:
SubtestItem show all
Defined in:
lib/golden_rose/child_item.rb

Instance Attribute Summary collapse

Attributes inherited from SubtestItem

#name

Instance Method Summary collapse

Methods inherited from SubtestItem

#to_h

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

#failuresObject (readonly)

Returns the value of attribute failures.



6
7
8
# File 'lib/golden_rose/child_item.rb', line 6

def failures
  @failures
end

#statusObject (readonly)

Returns the value of attribute status.



6
7
8
# File 'lib/golden_rose/child_item.rb', line 6

def status
  @status
end

#timeObject (readonly)

Returns the value of attribute time.



6
7
8
# File 'lib/golden_rose/child_item.rb', line 6

def time
  @time
end