lib/money_s3/builders/pc.rb in money_s3-1.0.0 vs lib/money_s3/builders/pc.rb in money_s3-2.0.0
- old
+ new
@@ -3,12 +3,10 @@
class PC
include ParserCore::BaseBuilder
def builder
root = Ox::Element.new(name)
- if data.key? :attributes
- data[:attributes].each { |k, v| root[k] = v }
- end
+ root = add_attributes_and_namespaces(root)
if data.key? :hladina
root << CenovaHladinaType.new('Hladina', data[:hladina]).builder
end
root << build_element('DealerSkupina', data[:dealer_skupina], data[:dealer_skupina_attributes]) if data.key? :dealer_skupina
\ No newline at end of file