Sha256: 881638025f056fa556453fb20bd82470f7a5133911007065d45a7b0f9c7aba20

Contents?: true

Size: 657 Bytes

Versions: 6

Compression:

Stored size: 657 Bytes

Contents

module MoneyS3
  module Builders
    class MsgBanDoklType < 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? :adresa
          root << MessageType.new('Adresa', data[:adresa]).builder
        end
        if data.key? :ucet
          root << MessageType.new('Ucet', data[:ucet]).builder
        end
        if data.key? :uhrada
          data[:uhrada].each { |i| root << MessageType.new('Uhrada', i).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_ban_dokl_type.rb
money_s3-2.4.0 lib/money_s3/builders/msg_ban_dokl_type.rb
money_s3-2.3.0 lib/money_s3/builders/msg_ban_dokl_type.rb
money_s3-2.2.0 lib/money_s3/builders/msg_ban_dokl_type.rb
money_s3-2.1.0 lib/money_s3/builders/msg_ban_dokl_type.rb
money_s3-2.0.0 lib/money_s3/builders/msg_ban_dokl_type.rb