Class: AppleID::AccessToken
- Inherits:
-
OpenIDConnect::AccessToken
- Object
- OpenIDConnect::AccessToken
- AppleID::AccessToken
- Includes:
- AppleID::API::UserMigration
- Defined in:
- lib/apple_id/access_token.rb
Instance Method Summary collapse
-
#initialize(access_token, attributes = {}) ⇒ AccessToken
constructor
A new instance of AccessToken.
Methods included from AppleID::API::UserMigration
#transfer_from!, #transfer_to!
Constructor Details
#initialize(access_token, attributes = {}) ⇒ AccessToken
Returns a new instance of AccessToken.
6 7 8 9 |
# File 'lib/apple_id/access_token.rb', line 6 def initialize(access_token, attributes = {}) super attributes.merge(access_token: access_token) self.id_token = IdToken.decode(id_token) if id_token.present? end |