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
-
#delete_token(token) ⇒ Object
Delete an authorization token.
-
#token(token, options = nil) ⇒ Tacokit::Resource
Get an authorization token.
- #token_resource(token, resource, *paths) ⇒ Object
Instance Method Details
#delete_token(token) ⇒ Object
Delete an authorization token
20 21 22 |
# File 'lib/tacokit/client/tokens.rb', line 20 def delete_token(token) delete token_path(token) end |
#token(token, options = nil) ⇒ Tacokit::Resource
Get an authorization token
11 12 13 |
# File 'lib/tacokit/client/tokens.rb', line 11 def token(token, = nil) get token_path(token), end |
#token_resource(token, resource, *paths) ⇒ Object
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 |