Sha256: 53eb7b6566ec415eb272213c174c090ea57f8e7c69d4688a8bc290b60c62fa8e

Contents?: true

Size: 1.55 KB

Versions: 6

Compression:

Stored size: 1.55 KB

Contents

module MoneyS3
  module Builders
    class ObdobiDPH
      include ParserCore::BaseBuilder

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

        root << build_element('DatumOd', data[:datum_od], data[:datum_od_attributes]) if data.key? :datum_od
        root << build_element('UcMD_1', data[:uc_md_1], data[:uc_md_1_attributes]) if data.key? :uc_md_1
        root << build_element('UcD_1', data[:uc_d_1], data[:uc_d_1_attributes]) if data.key? :uc_d_1
        root << build_element('UcMD_2', data[:uc_md_2], data[:uc_md_2_attributes]) if data.key? :uc_md_2
        root << build_element('UcD_2', data[:uc_d_2], data[:uc_d_2_attributes]) if data.key? :uc_d_2
        root << build_element('UcMD_3', data[:uc_md_3], data[:uc_md_3_attributes]) if data.key? :uc_md_3
        root << build_element('UcD_3', data[:uc_d_3], data[:uc_d_3_attributes]) if data.key? :uc_d_3
        root << build_element('UcMD_4', data[:uc_md_4], data[:uc_md_4_attributes]) if data.key? :uc_md_4
        root << build_element('UcD_4', data[:uc_d_4], data[:uc_d_4_attributes]) if data.key? :uc_d_4
        root << build_element('UcMD_5', data[:uc_md_5], data[:uc_md_5_attributes]) if data.key? :uc_md_5
        root << build_element('UcD_5', data[:uc_d_5], data[:uc_d_5_attributes]) if data.key? :uc_d_5
        root << build_element('UcMD_6', data[:uc_md_6], data[:uc_md_6_attributes]) if data.key? :uc_md_6
        root << build_element('UcD_6', data[:uc_d_6], data[:uc_d_6_attributes]) if data.key? :uc_d_6

        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/obdobi_dph.rb
money_s3-2.4.0 lib/money_s3/builders/obdobi_dph.rb
money_s3-2.3.0 lib/money_s3/builders/obdobi_dph.rb
money_s3-2.2.0 lib/money_s3/builders/obdobi_dph.rb
money_s3-2.1.0 lib/money_s3/builders/obdobi_dph.rb
money_s3-2.0.0 lib/money_s3/builders/obdobi_dph.rb