Class: TryTerra::AuthResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/try_terra/resources/auth.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from TryTerra::Resource

Instance Method Details

#authenticate_user(**params) ⇒ Object



3
4
5
# File 'lib/try_terra/resources/auth.rb', line 3

def authenticate_user(**params)
  Auth.new(post_request("auth/authenticateUser", params).body)
end

#deauthenticate_user(**params) ⇒ Object



7
8
9
# File 'lib/try_terra/resources/auth.rb', line 7

def deauthenticate_user(**params)
  Auth.new(delete_request("auth/deauthenticateUser", params).body)
end