lib/teamdrive_api/base.rb
# Generates the XML header for the RPC
Generates the XML header for the RPC
Generates the XML header for the RPC
def header_for(command)
      out = "<?xml version='1.0' encoding='UTF-8' ?>"
      out << '<teamdrive>'
      out << "<apiversion>#{@api_version}</apiversion>"
      out << "<command>#{command}</command>"
      out << "<requesttime>#{Time.now.to_i}</requesttime>"
    end
def header_for ( command ) out = "<?xml version='1.0' encoding='UTF-8' ?>" out << '<teamdrive>' out << "<apiversion>#{@api_version}</apiversion>" out << "<command>#{command}</command>" out << "<requesttime>#{Time.now.to_i}</requesttime>" end
Generates the XML header for the RPC
Generates the XML header for the RPC
command