Module: Tacokit::Client::Tokens
- Included in:
- Tacokit::Client
- Defined in:
- lib/tacokit/client/tokens.rb
Overview
Methods for the Tokens API
Instance Method Summary (collapse)
-
- (Object) delete_token(token)
Delete an authorization token.
-
- (Tacokit::Resource) token(token, options = nil)
Get an authorization token.
- - (Object) token_resource(token, resource, *paths)
Instance Method Details
- (Object) delete_token(token)
Delete an authorization token
20 21 22 |
# File 'lib/tacokit/client/tokens.rb', line 20 def delete_token(token) delete token_path(token) end |
- (Tacokit::Resource) token(token, options = nil)
Get an authorization token
11 12 13 |
# File 'lib/tacokit/client/tokens.rb', line 11 def token(token, = nil) get token_path(token), end |
- (Object) token_resource(token, resource, *paths)
25 26 27 28 |
# File 'lib/tacokit/client/tokens.rb', line 25 def token_resource(token, resource, *paths) paths, = (camp(resource), *paths) get token_path(token, *paths), end |