Class: Airwallex::Resources::Authentication
- Inherits:
-
BaseResource
- Object
- BaseResource
- Airwallex::Resources::Authentication
- Defined in:
- lib/airwallex/resources/authentication.rb
Constant Summary collapse
- LOGIN_PATH =
"/authentication/login"
Instance Attribute Summary
Attributes inherited from BaseResource
Instance Method Summary collapse
Methods inherited from BaseResource
Constructor Details
This class inherits a constructor from Airwallex::Resources::BaseResource
Instance Method Details
#login ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/airwallex/resources/authentication.rb', line 8 def login client.validate_credentials! response = post(LOGIN_PATH, {}, authentication_headers, authenticated: false) client.store_token!(response) response end |