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



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

def logout
  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