module Boxxspring::Worker::Authorization
Public Instance Methods
Protected Instance Methods
token()
click to toggle source
# File lib/boxxspring/worker/authorization.rb, line 31 def token @authorization_token ||= begin Unimatrix::Authorization::ClientCredentialsGrant.new( client_id: ENV[ 'KEYMAKER_CLIENT' ], client_secret: ENV[ 'KEYMAKER_SECRET' ] ).request_token end end
token!()
click to toggle source
# File lib/boxxspring/worker/authorization.rb, line 40 def token! @authorization_token = nil token end