Class: Juniter::TestSuiteProperties

Inherits:
Array
  • Object
show all
Defined in:
lib/juniter/test_suite_properties.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_xml(node) ⇒ Object



7
8
9
# File 'lib/juniter/test_suite_properties.rb', line 7

def from_xml(node)
  new(node.nodes.map { |n| TestSuiteProperty.from_xml(n) })
end

Instance Method Details

#to_xmlObject



12
13
14
15
16
17
18
# File 'lib/juniter/test_suite_properties.rb', line 12

def to_xml
  Ox::Element.new(:properties).tap do |properties|
    each do |property|
      properties << property.to_xml
    end
  end
end