Method: Mints::Contact#logout
- Defined in:
- lib/contact.rb
#logout ⇒ Object
Logout.
Ends a contact session previously logged.
Example
@mints_contact.login("[email protected]", "password")
@mints_contact.logout
98 99 100 101 102 103 104 |
# File 'lib/contact.rb', line 98 def logout response = @client.raw("post", "/contacts/logout") if session_token? if response["success"] @client.session_token = nil end return response end |