Module: Tacokit::Client::Tokens
- Included in:
- Tacokit::Client
- Defined in:
- lib/tacokit/client/tokens.rb
Instance Method Summary collapse
-
#delete_token(token) ⇒ Object
Delete an authorization token.
-
#token(token, options = nil) ⇒ Object
Get an authorization token.
- #token_resource(token, resource, *paths) ⇒ Object
Instance Method Details
#delete_token(token) ⇒ Object
Delete an authorization token
14 15 16 |
# File 'lib/tacokit/client/tokens.rb', line 14 def delete_token(token) delete token_path(token) end |
#token(token, options = nil) ⇒ Object
Get an authorization token
7 8 9 |
# File 'lib/tacokit/client/tokens.rb', line 7 def token(token, = nil) get token_path(token), end |
#token_resource(token, resource, *paths) ⇒ Object
19 20 21 22 |
# File 'lib/tacokit/client/tokens.rb', line 19 def token_resource(token, resource, *paths) paths, = (camp(resource), *paths) get token_path(token, *paths), end |