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.
303 304 305 |
# File 'lib/liblynx-api/client.rb', line 303 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new oauth2 token
310 311 312 |
# File 'lib/liblynx-api/client.rb', line 310 def create(body = {}) @client.token.create(body) end |