Class: Starling::Resources::MeResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- Starling::Resources::MeResource
- Defined in:
- lib/starling/resources/me_resource.rb
Overview
A resource representing a response returned from the Who Am I (Me) API
Instance Method Summary collapse
-
#authenticated ⇒ true, false
Whether the user is authenticated.
-
#customer_uid ⇒ String
The Starling internal ID of the user.
-
#expires_in_seconds ⇒ Integer, Fixnum
The time until the user’s access token expires.
-
#scopes ⇒ Array<String>
The scopes of the user’s access token.
Methods inherited from BaseResource
Constructor Details
This class inherits a constructor from Starling::Resources::BaseResource
Instance Method Details
#authenticated ⇒ true, false
Returns whether the user is authenticated.
11 12 13 |
# File 'lib/starling/resources/me_resource.rb', line 11 def authenticated parsed_data['authenticated'] end |
#customer_uid ⇒ String
Returns the Starling internal ID of the user.
6 7 8 |
# File 'lib/starling/resources/me_resource.rb', line 6 def customer_uid parsed_data['customerUid'] end |
#expires_in_seconds ⇒ Integer, Fixnum
Returns the time until the user’s access token expires.
16 17 18 |
# File 'lib/starling/resources/me_resource.rb', line 16 def expires_in_seconds parsed_data['expiresInSeconds'] end |
#scopes ⇒ Array<String>
Returns the scopes of the user’s access token.
21 22 23 |
# File 'lib/starling/resources/me_resource.rb', line 21 def scopes parsed_data['scopes'] end |