Class: Osso::Models::AccessToken

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
OAuth2Token
Defined in:
lib/osso/models/access_token.rb

Instance Method Summary collapse

Methods included from OAuth2Token

#expired!, #expires_in, included

Instance Method Details

#to_bearer_tokenObject



10
11
12
13
14
15
# File 'lib/osso/models/access_token.rb', line 10

def to_bearer_token
  Rack::OAuth2::AccessToken::Bearer.new(
    access_token: token,
    expires_in: expires_in,
  )
end