Sha256: 778b5cd9029129d28e619f9bf28b96ca177a1f213c4f8db0acbab22a77485ff0

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

module MoneyS3
  module Builders
    class TypPriplatkuType
      include ParserCore::BaseBuilder

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

        root << build_element('Zkratka', data[:zkratka], data[:zkratka_attributes]) if data.key? :zkratka
        root << build_element('Popis', data[:popis], data[:popis_attributes]) if data.key? :popis
        root << build_element('Poznamka', data[:poznamka], data[:poznamka_attributes]) if data.key? :poznamka
        root << build_element('Druh', data[:druh], data[:druh_attributes]) if data.key? :druh
        root << build_element('Sazba', data[:sazba], data[:sazba_attributes]) if data.key? :sazba
        root << build_element('Typ', data[:typ], data[:typ_attributes]) if data.key? :typ
        root << build_element('AutoLoad', data[:auto_load], data[:auto_load_attributes]) if data.key? :auto_load
        root << build_element('PrNahOff', data[:pr_nah_off], data[:pr_nah_off_attributes]) if data.key? :pr_nah_off

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