Module: BWAPI::Client::Logout

Included in:
BWAPI::Client
Defined in:
lib/bwapi/client/logout.rb

Overview

Logout module for logout endpoint

Instance Method Summary collapse

Instance Method Details

#logoutHashie::Mash

Logout user

Returns:

  • (Hashie::Mash)

    Logout information



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/bwapi/client/logout.rb', line 9

def logout
  begin
    get "logout"
  ensure
    self.access_token   = nil
    self.refresh_token  = nil
    self.username       = nil
    self.password       = nil
    self.client_id      = nil
    self.grant_type     = nil
    self.expires_in     = nil
  end
end