Class: Auth0::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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of scope



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

def scope
  @scope
end

Instance Method Details

#scopesObject



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

def scopes
  scope.split
end

#tokenObject



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

def token
  access_token
end