Sha256: 5415eebc9e5b7994562b23b4d583cbb74bdee9d86f25113a024a3037b5d2edef

Contents?: true

Size: 431 Bytes

Versions: 2

Compression:

Stored size: 431 Bytes

Contents

module MoneyS3
  module Builders
    class SeznamUcOsnov
      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? :uc_osnova
          data[:uc_osnova].each { |i| root << UcOsnovaType.new('UcOsnova', 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_uc_osnov.rb
money_s3-0.11.0 lib/money_s3/builders/seznam_uc_osnov.rb