Sha256: b1fce6554ea64dcb121c6e9b9fb1b5ad402548129700c582d5421fe3fc351a2f
Contents?: true
Size: 408 Bytes
Versions: 1
Compression:
Stored size: 408 Bytes
Contents
# frozen_string_literal: true module Tikkie module Api module V1 # Access token that can be used to make API calls. class AccessToken attr_accessor :token def initialize(token, expires_in) @token = token @expires_at = Time.now + expires_in.to_i end def expired? Time.now > @expires_at end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tikkie-api-2.0.0 | lib/tikkie/api/v1/access_token.rb |