class Fitbark::Data::Token
-
access_token
-
token_type
-
expires_in
-
scope
Public Instance Methods
expires_at()
click to toggle source
return Time of expiring based on expires_in source attribute
# File lib/fitbark/data/token.rb, line 25 def expires_at Time.now.utc + self[:expires_in].to_i end
scopes()
click to toggle source
return token's scopes as Array
# File lib/fitbark/data/token.rb, line 30 def scopes Array(self[:scope]) end
token()
click to toggle source
an alias for access_token source attribute
# File lib/fitbark/data/token.rb, line 15 def token self[:access_token] end
type()
click to toggle source
an alias for token_type source attribute
# File lib/fitbark/data/token.rb, line 20 def type self[:token_type] end