lib/mantisrb/session.rb
# Proxy for making requests to Mantis through use of Savon.
# @param [Symbol] request The Mantis method to be called (such as
# :mc_version or :mc_enum_status)
# @param [Hash] params Hash of parameters to pass to SOAP.  These get
# wrapped into <key>value</key> so nesting is encouraged.
# @return [Hash] Raw response back from Mantis converted from XML to Hash.
Proxy for making requests to Mantis through use of Savon.
Proxy for making requests to Mantis through use of Savon .
def response(request, params={})
      if params.kind_of?(Nokogiri::XML::Document)
        params = Nori.new(convert_tags_to: lambda { |tag| tag.snakecase.to_sym }).parse(params.to_s)
      end
      @connection.call request, :message=>add_credentials(params)
    end
def response ( request , params = { } ) if params . kind_of? ( Nokogiri :: XML :: Document ) params = Nori . new ( convert_tags_to : lambda { | tag | tag . snakecase . to_sym } ) . parse ( params . to_s ) end @connection . call request , :message => add_credentials ( params ) end
Proxy for making requests to Mantis through use of Savon.
Proxy for making requests to Mantis through use of Savon .
# convert Nokogiri::XML::Document to Hash
Raw response back from Mantis converted from XML to Hash.
Raw response back from Mantis converted from XML to Hash .
Hash
request
params
params Hash of parameters to pass to SOAP. These get wrapped into value so nesting is encouraged.
params Hash of parameters to pass to SOAP . These get wrapped into value so nesting is encouraged .