Sha256: 5c75aa46ca5c37f2b1c7c03324fc84d2a5603f76d72cdaf754ebd16548f01316

Contents?: true

Size: 479 Bytes

Versions: 6

Compression:

Stored size: 479 Bytes

Contents

module MoneyS3
  module Builders
    class VysledekOdesl
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        root = add_attributes_and_namespaces(root)

        root << build_element('Chyba', data[:chyba], data[:chyba_attributes]) 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

6 entries across 6 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/builders/vysledek_odesl.rb
money_s3-2.4.0 lib/money_s3/builders/vysledek_odesl.rb
money_s3-2.3.0 lib/money_s3/builders/vysledek_odesl.rb
money_s3-2.2.0 lib/money_s3/builders/vysledek_odesl.rb
money_s3-2.1.0 lib/money_s3/builders/vysledek_odesl.rb
money_s3-2.0.0 lib/money_s3/builders/vysledek_odesl.rb