Sha256: e2d1c609dd744d3c65d0c7209bcfb27a4430e732e201e0e2f80aee809e405f9d

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

require 'money_s3/builders/base_builder'

module MoneyS3
  module Builders
    class RozuctPolozIDType
      include BaseBuilder

      attr_accessor :popis, :uc_md, :uc_d, :castka, :stred, :zakazka, :cinnost, :par_sym, :par_ico, :pozn, :typ_cena, :sazba_dph

      def builder
        root = Ox::Element.new(element_name)

        root << (Ox::Element.new('Popis') << popis) if popis
        root << (Ox::Element.new('UcMD') << uc_md) if uc_md
        root << (Ox::Element.new('UcD') << uc_d) if uc_d
        root << (Ox::Element.new('Castka') << castka) if castka
        root << (Ox::Element.new('Stred') << stred) if stred
        root << (Ox::Element.new('Zakazka') << zakazka) if zakazka
        root << (Ox::Element.new('Cinnost') << cinnost) if cinnost
        root << (Ox::Element.new('ParSym') << par_sym) if par_sym
        root << (Ox::Element.new('ParICO') << par_ico) if par_ico
        root << (Ox::Element.new('Pozn') << pozn) if pozn
        root << (Ox::Element.new('TypCena') << typ_cena) if typ_cena
        root << (Ox::Element.new('SazbaDPH') << sazba_dph) if sazba_dph

        root
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.4.0 lib/money_s3/builders/rozuct_poloz_id_type.rb