Sha256: 1d3119a5af50e6708c6a7436d33ca80024a6a5ccc330460a334a6272e49b3315

Contents?: true

Size: 1.15 KB

Versions: 6

Compression:

Stored size: 1.15 KB

Contents

module MoneyS3
  module Builders
    class UctyPohybuType
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        root = add_attributes_and_namespaces(root)

        root << build_element('UcProdejk', data[:uc_prodejk], data[:uc_prodejk_attributes]) if data.key? :uc_prodejk
        root << build_element('UcPrijemk', data[:uc_prijemk], data[:uc_prijemk_attributes]) if data.key? :uc_prijemk
        root << build_element('UcVydejky', data[:uc_vydejky], data[:uc_vydejky_attributes]) if data.key? :uc_vydejky
        root << build_element('UcVyrobky', data[:uc_vyrobky], data[:uc_vyrobky_attributes]) if data.key? :uc_vyrobky
        root << build_element('UcVDodLst', data[:uc_v_dod_lst], data[:uc_v_dod_lst_attributes]) if data.key? :uc_v_dod_lst
        root << build_element('UcPDodLst', data[:uc_p_dod_lst], data[:uc_p_dod_lst_attributes]) if data.key? :uc_p_dod_lst
        root << build_element('UcManko', data[:uc_manko], data[:uc_manko_attributes]) if data.key? :uc_manko
        root << build_element('UcPreb', data[:uc_preb], data[:uc_preb_attributes]) if data.key? :uc_preb

        root
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/builders/ucty_pohybu_type.rb
money_s3-2.4.0 lib/money_s3/builders/ucty_pohybu_type.rb
money_s3-2.3.0 lib/money_s3/builders/ucty_pohybu_type.rb
money_s3-2.2.0 lib/money_s3/builders/ucty_pohybu_type.rb
money_s3-2.1.0 lib/money_s3/builders/ucty_pohybu_type.rb
money_s3-2.0.0 lib/money_s3/builders/ucty_pohybu_type.rb