Sha256: 3f3e121615651e0b7ab6b712a28575a3af8369ad5d38979bf6a27b4713964da9

Contents?: true

Size: 585 Bytes

Versions: 6

Compression:

Stored size: 585 Bytes

Contents

module MoneyS3
  module Builders
    class NepPlatbaType
      include ParserCore::BaseBuilder

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

        if data.key? :platidlo
          root << NepPlatidloType.new('Platidlo', data[:platidlo]).builder
        end
        root << build_element('MnozstviMJ', data[:mnozstvi_mj], data[:mnozstvi_mj_attributes]) if data.key? :mnozstvi_mj
        root << build_element('Castka', data[:castka], data[:castka_attributes]) if data.key? :castka

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