Sha256: 37f84ee5febea489104dd23fc8c18cbd45599f799a1c68a94085253a1c997f70

Contents?: true

Size: 426 Bytes

Versions: 2

Compression:

Stored size: 426 Bytes

Contents

module MoneyS3
  module Builders
    class SeznamPrijemka
      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? :prijemka
          data[:prijemka].each { |i| root << Prijemka.new('Prijemka', 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_prijemka.rb
money_s3-0.11.0 lib/money_s3/builders/seznam_prijemka.rb