Sha256: f09ca50d8d44227e7083443b60ff9015dbed4208bde47b87cab065057a823b7e

Contents?: true

Size: 299 Bytes

Versions: 15

Compression:

Stored size: 299 Bytes

Contents

module SugarCRM; class Connection
  # Logs out of the Sugar user session.
  def logout
    login! unless logged_in?
    json = <<-EOF
      {
        \"user_auth\": {
          \"session\": \"#{@session}\"
        }
      }
    EOF
    json.gsub!(/^\s{8}/,'')
    send!(:logout, json)
  end
end; end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sugarcrm-0.9.7 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.9.6 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.9.5 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.9.4 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.9.3 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.9.2 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.9.1 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.9.0 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.8.2 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.8.1 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.8.0 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.7.9 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.7.8 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.7.7 lib/sugarcrm/connection/api/logout.rb
sugarcrm-0.7.2 lib/sugarcrm/connection/api/logout.rb