lib/mantisrb/session.rb
# Add credential information to a SOAP body.  You can use either a {Hash}
# or {Nokogiri::XML::Document} to add credentials to.  For whichever you
# use, you will get the same type back for.
# @param [Hash] param Parameters that you want to add the credentials to
# @param [Nokogiri::XML::Document] param could also be a Nokogiri document
# @return [Hash] your {#param} instance with the username and password
# added to the SOAP body.
# @return [Nokogiri::XML::Document] Also could return a Nokogiri Document
Add credential information to a SOAP body.  You can use either a {Hash}
or {Nokogiri::XML::Document} to add credentials to.  For whichever you
use, you will get the same type back for.
Add credential information to a SOAP body . You can use either a { Hash } or { Nokogiri :: XML :: Document } to add credentials to . For whichever you use you will get the same type back for .
def add_credentials(param)
      if param.class == Nokogiri::XML::Document
        return add_credentials_to_document(param)
      elsif param.class == Hash
        return add_credentials_to_hash(param)
      else
        raise Error, <<-ERR, param
        Incorrect Type.  Must be either Hash or Nokogiri::XML::Document.
        Passed in as #{param.class}
        ERR
      end
      param
    end
def add_credentials ( param ) if param . class == Nokogiri :: XML :: Document return add_credentials_to_document ( param ) elsif param . class == Hash return add_credentials_to_hash ( param ) else raise Error , <<-ERR , param 
        Incorrect Type.  Must be either Hash or Nokogiri::XML::Document.
        Passed in as  #{ param . class } ERR end param end
Add credential information to a SOAP body.
Add credential information to a SOAP body .
your {#param} instance with the username and password added to the SOAP body.
your { #param } instance with the username and password added to the SOAP body .
Hash
Also could return a Nokogiri Document
Also could return a Nokogiri Document
Nokogiri::XML::Document
param
param could also be a Nokogiri document
param could also be a Nokogiri document