Sha256: 146ee1d27f6b1ea22075f005b73296e0ba0d6cb1203b47bab5dc81729a05ecd0

Contents?: true

Size: 418 Bytes

Versions: 2

Compression:

Stored size: 418 Bytes

Contents

module MoneyS3
  module Builders
    class SeznamNabVyd
      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? :nab_vyd
          data[:nab_vyd].each { |i| root << NabVyd.new('NabVyd', 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_nab_vyd.rb
money_s3-0.11.0 lib/money_s3/builders/seznam_nab_vyd.rb