# File lib/bugzilla/xmlrpc.rb, line 38 def initialize(host, port = 443, path = '/xmlrpc.cgi', proxy_host = nil, proxy_port = nil, timeout = 60) path ||= '/xmlrpc.cgi' use_ssl = port == 443 ? true : false @xmlrpc = ::XMLRPC::Client.new(host, path, port, proxy_host, proxy_port, nil, nil, use_ssl, timeout) end
# File lib/bugzilla/xmlrpc.rb, line 50 def call(cmd, params = {}, user = nil, password = nil) params = {} if params.nil? params['Bugzilla_login'] = user unless user.nil? || password.nil? params['Bugzilla_password'] = password unless user.nil? || password.nil? @xmlrpc.call(cmd, params) end
Generated with the Darkfish Rdoc Generator 2.