Class: ApiToken

Inherits:
Struct
  • Object
show all
Defined in:
lib/auth0/mixins/api_token_struct.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token



1
2
3
# File 'lib/auth0/mixins/api_token_struct.rb', line 1

def access_token
  @access_token
end

#expires_inObject

Returns the value of attribute expires_in



1
2
3
# File 'lib/auth0/mixins/api_token_struct.rb', line 1

def expires_in
  @expires_in
end

#scopeObject

Returns the value of attribute scope



1
2
3
# File 'lib/auth0/mixins/api_token_struct.rb', line 1

def scope
  @scope
end

Instance Method Details

#scopesObject



7
8
9
# File 'lib/auth0/mixins/api_token_struct.rb', line 7

def scopes
  scope.split
end

#tokenObject



3
4
5
# File 'lib/auth0/mixins/api_token_struct.rb', line 3

def token
  access_token
end