Sha256: 3ae8b144c5a03896cfddd9184495c2097402ca4615d0f54a4cdc5b3805c95691

Contents?: true

Size: 952 Bytes

Versions: 6

Compression:

Stored size: 952 Bytes

Contents

module MoneyS3
  module Builders
    class PredkontaceDEType
      include ParserCore::BaseBuilder

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

        root << build_element('Zkrat', data[:zkrat], data[:zkrat_attributes]) if data.key? :zkrat
        root << build_element('Popis', data[:popis], data[:popis_attributes]) if data.key? :popis
        root << build_element('Typ', data[:typ], data[:typ_attributes]) if data.key? :typ
        root << build_element('PohZak', data[:poh_zak], data[:poh_zak_attributes]) if data.key? :poh_zak
        root << build_element('ZauctDPH', data[:zauct_dph], data[:zauct_dph_attributes]) if data.key? :zauct_dph
        root << build_element('Cleneni', data[:cleneni], data[:cleneni_attributes]) if data.key? :cleneni
        root << build_element('Pozn', data[:pozn], data[:pozn_attributes]) if data.key? :pozn

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