class DwollaV2::TokenWrapper
Constants
- EXPIRES_IN_LEEWAY
Attributes
token[R]
Public Class Methods
new(token)
click to toggle source
# File lib/dwolla_v2/token_manager.rb, line 30 def initialize(token) @token = token @expires_at = Time.now.utc + @token.expires_in - EXPIRES_IN_LEEWAY end
Public Instance Methods
is_expired?()
click to toggle source
# File lib/dwolla_v2/token_manager.rb, line 35 def is_expired? @expires_at < Time.now.utc end