Sha256: 93881ee32072724610538eb1d987d48b149e27abb6a03b31fb9746994e487727

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

module MoneyS3
  module Builders
    class VysledekOdesl
      include ParserCore::BaseBuilder

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

        root << build_element('Chyba', data[:chyba]) if data.key? :chyba
        if data.key? :varovani
          data[:varovani].map { |i| Ox::Element.new('Varovani') << i }.each { |i| root << i }
        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/vysledek_odesl.rb
money_s3-0.11.0 lib/money_s3/builders/vysledek_odesl.rb