Sha256: 3800aa41343782a02b1206bddc7406c8c7bbe7dc4bb16768642679e2ceb43f63

Contents?: true

Size: 563 Bytes

Versions: 6

Compression:

Stored size: 563 Bytes

Contents

module MoneyS3
  module Builders
    class ParametrKartaType
      include ParserCore::BaseBuilder

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

        if data.key? :parametr
          root << ParametrType.new('Parametr', data[:parametr]).builder
        end
        root << build_element('Poradi', data[:poradi], data[:poradi_attributes]) if data.key? :poradi
        root << build_element('Value', data[:value], data[:value_attributes]) if data.key? :value

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