Class: LibLynxAPI::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/liblynx-api/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Token

Returns a new instance of Token.



257
258
259
# File 'lib/liblynx-api/client.rb', line 257

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object

Create a new oauth2 token

Parameters:

  • body:

    the object to pass as the request payload



264
265
266
# File 'lib/liblynx-api/client.rb', line 264

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