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.



302
303
304
# File 'lib/liblynx-api/client.rb', line 302

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



309
310
311
# File 'lib/liblynx-api/client.rb', line 309

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