Sha256: 4c97bb0f506777d2665c4938ca95b2bf260081174fc48e147b764a0ed67c1c36

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

module MoneyS3
  module Builders
    class SeznamIntDokl
      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? :int_dokl
          data[:int_dokl].each { |i| root << IntDokl.new('IntDokl', 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_int_dokl.rb
money_s3-0.11.0 lib/money_s3/builders/seznam_int_dokl.rb