Sha256: ec24be41713baf95041a262c1547f5705dabebda5f33bd4cfa6de1de69a89dde

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

module MoneyS3
  module Builders
    class SeznamTypKusovnik
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        if data.key? :attributes
          data[:attributes].each { |k, v| root[k] = v }
        end

        if data.key? :typ_kusovnik
          data[:typ_kusovnik].each { |i| root << KusovnikType.new('TypKusovnik', i).builder }
        end

        root
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-1.0.0 lib/money_s3/builders/seznam_typ_kusovnik.rb