class Starling::Resources::MeResource

A resource representing a response returned from the Who Am I (Me) API

Public Instance Methods

authenticated() click to toggle source

@return [true, false] whether the user is authenticated

# File lib/starling/resources/me_resource.rb, line 11
def authenticated
  parsed_data['authenticated']
end
customer_uid() click to toggle source

@return [String] the Starling internal ID of the user

# File lib/starling/resources/me_resource.rb, line 6
def customer_uid
  parsed_data['customerUid']
end
expires_in_seconds() click to toggle source

@return [Integer, Fixnum] the time until the user's access token expires

# File lib/starling/resources/me_resource.rb, line 16
def expires_in_seconds
  parsed_data['expiresInSeconds']
end
scopes() click to toggle source

@return [Array<String>] the scopes of the user's access token

# File lib/starling/resources/me_resource.rb, line 21
def scopes
  parsed_data['scopes']
end