Sha256: 4171cef154990c726ceb3bcde1c42558cd42e9fcb1c9dbdba31b10707bcc29c3

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 Bytes

Contents

module MoneyS3
  module Builders
    class SeznamZakKusovnik
      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? :zak_kusovnik
          data[:zak_kusovnik].each { |i| root << KusovnikType.new('ZakKusovnik', 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_zak_kusovnik.rb
money_s3-0.11.0 lib/money_s3/builders/seznam_zak_kusovnik.rb