class Logs

Defined in:

logs/model.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(user_id : Int32, protocol_number : Int32, date : String, type : String) #

Construtor


[View source]

Class Method Detail

def self.delete(db, id : Int32) #

Método para deletar um log


[View source]
def self.get_all(db) : ListOfLogs #

Método para obter todos os logs


[View source]
def self.get_by_id(db, id : Int32) #

Método para obter um log por ID


[View source]
def self.transform_logs(logs : DBResult) : ListOfLogs #

Método para transformar os logs


[View source]

Instance Method Detail

def date : String #

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

[View source]
def id : Int32 | Nil #

Atributos do modelo


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

Atributos do modelo


[View source]
def protocol_number : Int32 #

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

[View source]
def save(db) #

Método para salvar um novo log no banco de dados


[View source]
def type : String #

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

[View source]
def update(db, id : Int32) #

Método para atualizar um log


[View source]
def user_id : Int32 #

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

[View source]