Method: Mints::Contact#logout
- Defined in:
- lib/contact.rb
#logout ⇒ Object
Logout.
Ends a contact session previously logged.
Example
@data = @mints_contact.logout
217 218 219 220 221 222 223 224 |
# File 'lib/contact.rb', line 217 def logout if session_token? response = @client.raw('post', '/logout', nil, nil, @contact_v1_url) @client.session_token = nil if response['success'] response end end |