Class: Paypal::REST::BearerToken
- Inherits:
-
Object
- Object
- Paypal::REST::BearerToken
- Defined in:
- lib/paypal/rest/bearer_token.rb
Instance Method Summary collapse
Instance Method Details
#expired? ⇒ 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_s ⇒ Object
12 13 14 |
# File 'lib/paypal/rest/bearer_token.rb', line 12 def to_s token end |