lib/money_s3/builders/cinnost.rb in money_s3-0.10.0 vs lib/money_s3/builders/cinnost.rb in money_s3-0.11.0
- old
+ new
@@ -1,20 +1,18 @@
-require 'money_s3/builders/base_builder'
-
module MoneyS3
module Builders
- class Cinnost
- include BaseBuilder
+ 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 }
end
- root << build_element('Zkrat', data[:zkrat]) if data.key? :zkrat
- root << build_element('Nazev', data[:nazev]) if data.key? :nazev
- root << build_element('Pozn', data[:pozn]) if data.key? :pozn
+ super.nodes.each do |n|
+ root << n
+ end
root
end
end
end
\ No newline at end of file