Sha256: f68cd33e157e08daaf11ce4aa8838d7d26b2f75fbdb9720bb3d6da58b434b2ae

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

module MoneyS3
  module Builders
    class SeznamFaktVyd
      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? :fakt_vyd
          data[:fakt_vyd].each { |i| root << FaktVyd.new('FaktVyd', 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_fakt_vyd.rb
money_s3-0.11.0 lib/money_s3/builders/seznam_fakt_vyd.rb