class

Yt::ProfileConfig

Inherits YAML::Serializable < Reference < Object

Constructors

new(client_id : String, client_secret : String = "", access_token : String = "", refresh_token : String = "", token_expires_at : Int64 = 0_i64, port : Int32 = 1234)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

access_token
Source
access_token=(access_token : String)
Source
client_id
Source
client_id=(client_id : String)
Source
client_secret
Source
client_secret=(client_secret : String)
Source
oauth_client
Source
port
Source
port=(port : Int32)
Source
redirect_uri
Source
redirect_uri=(redirect_uri : String)
Source
refresh_token
Source
refresh_token=(refresh_token : String)
Source
token_expired?
Source
token_expires_at
Source
token_expires_at=(token_expires_at : Int64)
Source
update_tokens(access_token : String, refresh_token : String, expires_in : Int32 = 3600) : Nil
Source