Sha256: 49c6c17da17d8c0bb877dc71f5393a76597791d8f1c6c6a73bd027bd3f6c94f2

Contents?: true

Size: 980 Bytes

Versions: 6

Compression:

Stored size: 980 Bytes

Contents

module MoneyS3
  module Builders
    class ObdobiDPH2
      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('PohD_1', data[:poh_d_1], data[:poh_d_1_attributes]) if data.key? :poh_d_1
        root << build_element('PohD_2', data[:poh_d_2], data[:poh_d_2_attributes]) if data.key? :poh_d_2
        root << build_element('PohD_3', data[:poh_d_3], data[:poh_d_3_attributes]) if data.key? :poh_d_3
        root << build_element('PohD_4', data[:poh_d_4], data[:poh_d_4_attributes]) if data.key? :poh_d_4
        root << build_element('PohD_5', data[:poh_d_5], data[:poh_d_5_attributes]) if data.key? :poh_d_5
        root << build_element('PohD_6', data[:poh_d_6], data[:poh_d_6_attributes]) if data.key? :poh_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_dph2.rb
money_s3-2.4.0 lib/money_s3/builders/obdobi_dph2.rb
money_s3-2.3.0 lib/money_s3/builders/obdobi_dph2.rb
money_s3-2.2.0 lib/money_s3/builders/obdobi_dph2.rb
money_s3-2.1.0 lib/money_s3/builders/obdobi_dph2.rb
money_s3-2.0.0 lib/money_s3/builders/obdobi_dph2.rb