Sha256: bf395bd0e92f88a0d213d1232a49acbc07237b2acb17d005fd8a7a13272d9620

Contents?: true

Size: 532 Bytes

Versions: 2

Compression:

Stored size: 532 Bytes

Contents

module MoneyS3
  module Builders
    class PreprDoplnUdajType
      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('Zkrat', data[:zkrat]) if data.key? :zkrat
        root << build_element('Popis', data[:popis]) if data.key? :popis
        root << build_element('Poznamka', data[:poznamka]) if data.key? :poznamka

        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/prepr_dopln_udaj_type.rb
money_s3-0.11.0 lib/money_s3/builders/prepr_dopln_udaj_type.rb