Class: Increase::Models::OAuthToken

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/increase/models/oauth_token.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #inspect, #to_h, #to_s

Instance Attribute Details

#access_tokenString

You may use this token in place of an API key to make OAuth requests on a user's behalf.

Returns:

  • (String)


9
# File 'lib/increase/models/oauth_token.rb', line 9

required :access_token, String

#token_typeSymbol

The type of OAuth token.

Returns:

  • (Symbol)


14
# File 'lib/increase/models/oauth_token.rb', line 14

required :token_type, Increase::Enum.new(:bearer)

#typeSymbol

A constant representing the object's type. For this resource it will always be oauth_token.

Returns:

  • (Symbol)


19
# File 'lib/increase/models/oauth_token.rb', line 19

required :type, Increase::Enum.new(:oauth_token)