Sha256: f4b2b3444d738d9e0f269e265e03b13868c574c74dcb1fb1a2402149591e4f51

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 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(element_name)

        if attributes.key? :pok_dokl
          attributes[:pok_dokl].each { |i| root << PokDokl.new(i, 'PokDokl').builder }
        end

        root
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.5.0 lib/money_s3/builders/seznam_pok_dokl.rb