Module: Tacokit::Client::Tokens

Included in:
Tacokit::Client
Defined in:
lib/tacokit/client/tokens.rb

Instance Method Summary collapse

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, options = nil)
  get token_path(token), options
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, options = extract_options(camp(resource), *paths)
  get token_path(token, *paths), options
end