require 'money_s3/builders/base_builder' require 'money_s3/builders/inv_dokl_type' module MoneyS3 module Builders class SeznamInvDokl include BaseBuilder attr_accessor :inv_doklad def builder root = Ox::Element.new(element_name) if inv_doklad inv_doklad.each { |i| root << InvDoklType.new(i, 'InvDoklad').builder } end root end end end end