class Google::Token

Included Modules

Defined in:

auth/token.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(access_token : String, expires : Time, refresh_token : Nil | String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def access_token : String #

[View source]
def access_token=(access_token : String) #

[View source]
def current? #

[View source]
def expired? #

[View source]
def expires : Time #

[View source]
def expires=(expires : Time) #

[View source]
def expires_in : Int32 #

[View source]
def expires_in=(expires_in : Int32) #

[View source]
def refresh_token : String | Nil #

[View source]
def refresh_token=(refresh_token : String | Nil) #

[View source]
def token_type : String #

[View source]
def token_type=(token_type : String) #

[View source]