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.



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

Parameters:

  • body:

    the object to pass as the request payload



461
462
463
# File 'lib/komoju/client.rb', line 461

def create(body)
  @client.tokens.create(body)
end