Sha256: e97fe23a007570be454d49f42188cb9bac5e0a8dc1355fbf9995be5afd7c2fc5

Contents?: true

Size: 798 Bytes

Versions: 6

Compression:

Stored size: 798 Bytes

Contents

module MoneyS3
  module Builders
    class DoklRefType
      include ParserCore::BaseBuilder

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

        root << build_element('IDDokladu', data[:id_dokladu], data[:id_dokladu_attributes]) if data.key? :id_dokladu
        root << build_element('CisloDokladu', data[:cislo_dokladu], data[:cislo_dokladu_attributes]) if data.key? :cislo_dokladu
        root << build_element('DruhDokladu', data[:druh_dokladu], data[:druh_dokladu_attributes]) if data.key? :druh_dokladu
        root << build_element('Rok', data[:rok], data[:rok_attributes]) if data.key? :rok
        if data.key? :eet
          root << EETType.new('EET', data[:eet]).builder
        end

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