Class: Stormpath::Rails::AccountFromAccessToken::LocalAccountResolution
- Inherits:
-
Object
- Object
- Stormpath::Rails::AccountFromAccessToken::LocalAccountResolution
- Defined in:
- app/services/stormpath/rails/account_from_access_token/local_account_resolution.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
Instance Method Summary collapse
- #account ⇒ Object
-
#initialize(access_token) ⇒ LocalAccountResolution
constructor
A new instance of LocalAccountResolution.
Constructor Details
#initialize(access_token) ⇒ LocalAccountResolution
Returns a new instance of LocalAccountResolution.
7 8 9 10 11 |
# File 'app/services/stormpath/rails/account_from_access_token/local_account_resolution.rb', line 7 def initialize(access_token) @access_token = access_token @application = Client.application validate_jwt end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
5 6 7 |
# File 'app/services/stormpath/rails/account_from_access_token/local_account_resolution.rb', line 5 def access_token @access_token end |
Instance Method Details
#account ⇒ Object
13 14 15 |
# File 'app/services/stormpath/rails/account_from_access_token/local_account_resolution.rb', line 13 def account Stormpath::Rails::Client.client.accounts.get(account_href) end |