Sha256: a2edb4756915d4b7dde72ba507a15fd7b687cd0940a26879385c76a1c7fa9d0e

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

module MoneyS3
  module Builders
    class SeznamPoptPrij
      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? :popt_prij
          data[:popt_prij].each { |i| root << PoptPrij.new('PoptPrij', i).builder }
        end

        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/seznam_popt_prij.rb
money_s3-0.11.0 lib/money_s3/builders/seznam_popt_prij.rb