Class: Revox::Resources::AuthStatus
- Inherits:
-
Object
- Object
- Revox::Resources::AuthStatus
- Defined in:
- lib/revox/resources/auth_status.rb,
sig/revox/resources/auth_status.rbs
Instance Method Summary collapse
-
#initialize(client:) ⇒ AuthStatus
constructor
private
A new instance of AuthStatus.
-
#retrieve(request_options: {}) ⇒ Revox::Models::AuthStatusRetrieveResponse
Check if your API key is still valid.
Constructor Details
#initialize(client:) ⇒ AuthStatus
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AuthStatus.
27 28 29 |
# File 'lib/revox/resources/auth_status.rb', line 27 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(request_options: {}) ⇒ Revox::Models::AuthStatusRetrieveResponse
Check if your API key is still valid.
15 16 17 18 19 20 21 22 |
# File 'lib/revox/resources/auth_status.rb', line 15 def retrieve(params = {}) @client.request( method: :get, path: "auth-status", model: Revox::Models::AuthStatusRetrieveResponse, options: params[:request_options] ) end |