Class: LibLynxAPI::Token
- Inherits:
-
Object
- Object
- LibLynxAPI::Token
- Defined in:
- lib/liblynx-api/client.rb
Instance Method Summary collapse
-
#create(body = {}) ⇒ Object
Create a new oauth2 token.
-
#initialize(client) ⇒ Token
constructor
A new instance of Token.
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
264 265 266 |
# File 'lib/liblynx-api/client.rb', line 264 def create(body = {}) @client.token.create(body) end |