Class: Komoju::Tokens
- Inherits:
-
Object
- Object
- Komoju::Tokens
- Defined in:
- lib/komoju/client.rb
Overview
Token resource
Instance Method Summary collapse
-
#create(body) ⇒ Object
Create a token.
-
#initialize(client) ⇒ Tokens
constructor
A new instance of Tokens.
Constructor Details
#initialize(client) ⇒ Tokens
Returns a new instance of Tokens.
454 455 456 |
# File 'lib/komoju/client.rb', line 454 def initialize(client) @client = client end |
Instance Method Details
#create(body) ⇒ Object
Create a token
461 462 463 |
# File 'lib/komoju/client.rb', line 461 def create(body) @client.tokens.create(body) end |