lib/money_s3/builders/data6.rb in money_s3-0.12.0 vs lib/money_s3/builders/data6.rb in money_s3-1.0.0

- old
+ new

@@ -3,11 +3,11 @@ class Data6 include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) - if data.respond_to? :attributes - data.attributes.each { |k, v| root[k] = v } + if data.key? :attributes + data[:attributes].each { |k, v| root[k] = v } end if data.key? :zauctovani_dph_de root << ZauctovaniDPHDetype.new('ZauctovaniDPH_DE', data[:zauctovani_dph_de]).builder end \ No newline at end of file