lib/teamdrive_api/base.rb
# Generates the XML payload for the RPC
Generates the XML payload for the RPC
Generates the XML payload for the RPC
def payload_for(command, query = {})
      out = header_for(command)
      query.each do |k, v|
        next if v.nil?
        v = v.to_s
        v = '$' + v if %w(true false).include?(v)
        out << "<#{k}>#{v}</#{k}>"
      end
      out << '</teamdrive>'
    end
def payload_for ( command , query = { } ) out = header_for ( command ) query . each do | k , v | next if v . nil? v = v . to_s v = '$' + v if %w( true false ) . include? ( v ) out << "<#{k}>#{v}</#{k}>" end out << '</teamdrive>' end
Generates the XML payload for the RPC
Generates the XML payload for the RPC
command
query