Module: Tacokit::Client::Tokens
- Included in:
- Tacokit::Client
- Defined in:
- lib/tacokit/client/tokens.rb
Instance Method Summary collapse
-
#delete_token(token) ⇒ Object
DELETE /1/tokens/.
-
#token(token, options = nil) ⇒ Object
GET /1/tokens/.
- #token_path(*paths) ⇒ Object
- #token_resource(token, resource, *paths) ⇒ Object
Instance Method Details
#delete_token(token) ⇒ Object
DELETE /1/tokens/
24 25 26 |
# File 'lib/tacokit/client/tokens.rb', line 24 def delete_token(token) delete token_path(token) end |
#token(token, options = nil) ⇒ Object
GET /1/tokens/
5 6 7 |
# File 'lib/tacokit/client/tokens.rb', line 5 def token(token, = nil) get token_path(token), end |
#token_path(*paths) ⇒ Object
30 31 32 |
# File 'lib/tacokit/client/tokens.rb', line 30 def token_path(*paths) path_join "tokens", *paths end |