Sha256: 9fad4d7a57c21a40cf11a1a48f3e95faae8732e1b31590741985c3497ae4cf88
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
module PayPal class AccessToken attr_accessor :access_token, :token_type, :expires_in, :date_created def initialize(options) @access_token = options.access_token @token_type = options.token_type @expires_in = options.expires_in @date_created = Time.now end def isExpired return Time.now > @date_created + @expires_in end def authorizationString return "#{@token_type} #{@access_token}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
paypal-payouts-sdk-2.0.1 | lib/core/access_token.rb |
paypal-payouts-sdk-1.0.1 | lib/core/access_token.rb |
paypal-payouts-sdk-1.0.0 | lib/core/access_token.rb |