Sha256: 1232bf20ae20bf04c1c15c4bb168e2e49c268f1a2384d8e2540330df3c93dc6c

Contents?: true

Size: 567 Bytes

Versions: 2

Compression:

Stored size: 567 Bytes

Contents

module MoneyS3
  module Builders
    class ParametrKartaType
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        if data.respond_to? :attributes
          data.attributes.each { |k, v| root[k] = v }
        end

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

        root
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/builders/parametr_karta_type.rb
money_s3-0.11.0 lib/money_s3/builders/parametr_karta_type.rb