Class: Komoju::Tokens

Inherits:
Object
  • Object
show all
Defined in:
lib/komoju/client.rb

Overview

Token resource

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Tokens

Returns a new instance of Tokens.



472
473
474
# File 'lib/komoju/client.rb', line 472

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object

Create a token

Parameters:

  • body:

    the object to pass as the request payload



479
480
481
# File 'lib/komoju/client.rb', line 479

def create(body = {})
  @client.tokens.create(body)
end