class Tourmaline::NilPersistence

Overview

The default persistence, which is no persistence. This is basically just a placeholder class that does absolutely nothing, but still allows persistence methods to be accessed.

Defined in:

tourmaline/persistence/nil_persistence.cr

Instance Method Summary

Instance methods inherited from class Tourmaline::Persistence

chat_exists?(chat_id : Int) : Bool
chat_exists?(username : String) : Bool
chat_exists?
, get_chat(chat_id : Int) : Chat | Nil
get_chat(username : String) : Chat | Nil
get_chat
, get_user(user_id : Int) : User | Nil
get_user(username : String) : User | Nil
get_user
, handle_persistent_update(update : Update) handle_persistent_update, persistent_cleanup persistent_cleanup, persistent_init persistent_init, update_chat(chat : Chat) : Chat update_chat, update_user(user : User) : User update_user, user_exists?(user_id : Int) : Bool
user_exists?(usename : String) : Bool
user_exists?

Instance Method Detail

def chat_exists?(chat_id : Int) : Bool #

[View source]
def chat_exists?(username : String) : Bool #

[View source]
def get_chat(chat_id : Int) : Chat | Nil #

[View source]
def get_chat(username : String) : Chat | Nil #

[View source]
def get_user(user_id : Int) : User | Nil #

[View source]
def get_user(username : String) : User | Nil #

[View source]
def handle_persistent_update(update : Update) #

[View source]
def persistent_cleanup #

[View source]
def persistent_init #

[View source]
def update_chat(chat : Chat) : Chat #

[View source]
def update_user(user : User) : User #

[View source]
def user_exists?(user_id : Int) : Bool #

[View source]
def user_exists?(username : String) : Bool #

[View source]