class Tokens

Included Modules

Defined in:

models/tokens.cr:1
models/tokens.cr:3

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.adapter : Granite::Adapter::Base #

Instance Method Detail

def access_token : String | Nil #

[View source]
def access_token! : String #

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

[View source]
def access_token_or_refresh_it! #

refreshes the access token


[View source]
def created_at : Time | Nil #

def created_at! : Time #

def created_at=(created_at : Time | Nil) #

def expires_in : Int32 | Nil #

[View source]
def expires_in! : Int32 #

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

[View source]
def id : Int64 | Nil #

[View source]
def id! : Int64 #

[View source]
def id=(id : Int64 | Nil) #

[View source]
def refresh #

[View source]
def refresh_token : String | Nil #

[View source]
def refresh_token! : String #

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

[View source]
def updated_at : Time | Nil #

def updated_at! : Time #

def updated_at=(updated_at : Time | Nil) #

def user : User | Nil #

[View source]
def user! : User #

[View source]
def user=(parent : User) #

[View source]
def user_id : Int64 | Nil #

def user_id! : Int64 #

def user_id=(user_id : Int64 | Nil) #