Sha256: 01813e25e5ff5f28ad12d7f215361bf5e9cd0113ad3d2fe7328ab76fa70190bc

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

module MoneyS3
  module Builders
    class SeznamVyrobka
      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? :vyrobka
          data[:vyrobka].each { |i| root << Vyrobka.new('Vyrobka', 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_vyrobka.rb
money_s3-0.11.0 lib/money_s3/builders/seznam_vyrobka.rb