Sha256: 0d6461ab08a53a5002d4eac47ec401ef06c04a3e9a8f666d15b0b98a167d355b

Contents?: true

Size: 916 Bytes

Versions: 6

Compression:

Stored size: 916 Bytes

Contents

module MoneyS3
  module Builders
    class ParametrType
      include ParserCore::BaseBuilder

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

        root << build_element('ID', data[:id], data[:id_attributes]) if data.key? :id
        root << build_element('Nazev', data[:nazev], data[:nazev_attributes]) if data.key? :nazev
        root << build_element('Druh', data[:druh], data[:druh_attributes]) if data.key? :druh
        root << build_element('Typ', data[:typ], data[:typ_attributes]) if data.key? :typ
        root << build_element('MJ', data[:mj], data[:mj_attributes]) if data.key? :mj
        root << build_element('UzivCode', data[:uziv_code], data[:uziv_code_attributes]) if data.key? :uziv_code
        root << build_element('Hodnoty', data[:hodnoty], data[:hodnoty_attributes]) if data.key? :hodnoty

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