lib/money_s3/builders/sklad.rb in money_s3-1.0.0 vs lib/money_s3/builders/sklad.rb in money_s3-2.0.0
- old
+ new
@@ -3,12 +3,10 @@
class Sklad < SkladType
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)
super.nodes.each do |n|
root << n
end
\ No newline at end of file