lib/money_s3/builders/cinnost.rb in money_s3-0.12.0 vs lib/money_s3/builders/cinnost.rb in money_s3-1.0.0
- old
+ new
@@ -3,11 +3,11 @@
class Cinnost < CinnostType
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
super.nodes.each do |n|
root << n
end
\ No newline at end of file