Class: Paypal::REST::BearerToken

Inherits:
Object
  • Object
show all
Defined in:
lib/paypal/rest/bearer_token.rb

Instance Method Summary collapse

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


6
7
8
9
10
# File 'lib/paypal/rest/bearer_token.rb', line 6

def expired?
  return false if expires_at.nil?

  Util.now > (expires_at - 60)
end

#to_sObject



12
13
14
# File 'lib/paypal/rest/bearer_token.rb', line 12

def to_s
  token
end