Sha256: 8f489c5dfb91f82165f8e6857d71b8d7756b9605577d9791959f8301761550b4

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

module MoneyS3
  module Builders
    class MsgZasobaType < MessageType
      include ParserCore::BaseBuilder

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

        super.nodes.each do |n|
          root << n
        end

        if data.key? :km_kart
          root << MessageType.new('KmKart', data[:km_kart]).builder
        end
        if data.key? :sklad
          root << MessageType.new('Sklad', data[:sklad]).builder
        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/msg_zasoba_type.rb
money_s3-2.4.0 lib/money_s3/builders/msg_zasoba_type.rb
money_s3-2.3.0 lib/money_s3/builders/msg_zasoba_type.rb
money_s3-2.2.0 lib/money_s3/builders/msg_zasoba_type.rb
money_s3-2.1.0 lib/money_s3/builders/msg_zasoba_type.rb
money_s3-2.0.0 lib/money_s3/builders/msg_zasoba_type.rb