Sha256: 2133a3d8bd8174ef39a6758a4472dbb3b470c6120177f390e9594b8a16a704e8

Contents?: true

Size: 490 Bytes

Versions: 5

Compression:

Stored size: 490 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/pok_dokl'

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

        root
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/builders/seznam_pok_dokl.rb
money_s3-0.9.0 lib/money_s3/builders/seznam_pok_dokl.rb
money_s3-0.8.0 lib/money_s3/builders/seznam_pok_dokl.rb
money_s3-0.7.0 lib/money_s3/builders/seznam_pok_dokl.rb
money_s3-0.6.0 lib/money_s3/builders/seznam_pok_dokl.rb