Class: Auth0::AccessToken
- Inherits:
-
Struct
- Object
- Struct
- Auth0::AccessToken
- Defined in:
- lib/auth0/mixins/access_token_struct.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#expires_in ⇒ Object
Returns the value of attribute expires_in.
-
#id_token ⇒ Object
Returns the value of attribute id_token.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token
1 2 3 |
# File 'lib/auth0/mixins/access_token_struct.rb', line 1 def access_token @access_token end |
#expires_in ⇒ Object
Returns the value of attribute expires_in
1 2 3 |
# File 'lib/auth0/mixins/access_token_struct.rb', line 1 def expires_in @expires_in end |
#id_token ⇒ Object
Returns the value of attribute id_token
1 2 3 |
# File 'lib/auth0/mixins/access_token_struct.rb', line 1 def id_token @id_token end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token
1 2 3 |
# File 'lib/auth0/mixins/access_token_struct.rb', line 1 def refresh_token @refresh_token end |
Class Method Details
.from_response(response) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/auth0/mixins/access_token_struct.rb', line 8 def self.from_response(response) new( response['access_token'], response['expires_in'], response['refresh_token'], response['id_token'] ) end |
Instance Method Details
#token ⇒ Object
17 18 19 |
# File 'lib/auth0/mixins/access_token_struct.rb', line 17 def token access_token end |