Sha256: 7bd667564029b6145a9186e8e6b432b7627b60dc0890ae90381845765905843c
Contents?: true
Size: 444 Bytes
Versions: 15
Compression:
Stored size: 444 Bytes
Contents
module SugarCRM; class Connection # Logs the user into the Sugar application. def login connect! unless connected? json = <<-EOF { \"user_auth\": { \"user_name\": \"#{@user}\"\, \"password\": \"#{OpenSSL::Digest::MD5.new(@pass)}\"\, \"version\": \"2\"\, }, \"application\": \"\" } EOF json.gsub!(/^\s{8}/,'') response = send!(:login, json) end end; end
Version data entries
15 entries across 15 versions & 1 rubygems