Sha256: ca3102f82ecbfe346f2f9b48d2c0a71983ac2141632c62aa8164675a9c5afb4e
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
# frozen_string_literal: true module TimeTree module CalendarApp class AccessToken # @return [String] attr_reader :token # @return [Integer] attr_reader :expire_at def initialize(token, expire_at) @token = token @expire_at = expire_at end # # Returns the access token is expired or not. # # @return [Boolean] def expired? Time.now.to_i > expire_at end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timetree-1.0.0 | lib/timetree/calendar_app/access_token.rb |