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

- old
+ new

@@ -3,11 +3,11 @@ class Data5 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 root << ZauctovaniDPHType.new('ZauctovaniDPH', data[:zauctovani_dph]).builder end \ No newline at end of file