class Claim

Defined in:

claim/model.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(insurance_id : Int32, claim_number : Float64, claim_date : String, end_date : String | Nil, claim_amount : Float64, status : String) #

Construtor


[View source]

Class Method Detail

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

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

Método para obter todos os sinistros


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

[View source]
def self.get_by_insurance_id(db, insurance_id : Int32) #

[View source]
def self.transform_claims(claims : DBResult) : ListOfClaims #

[View source]

Instance Method Detail

def claim_amount : Float64 #

[View source]
def claim_amount=(claim_amount : Float64) #

[View source]
def claim_date : String #

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

[View source]
def claim_number : Float64 #

[View source]
def claim_number=(claim_number : Float64) #

[View source]
def end_date : String | Nil #

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

[View source]
def id : Int32 | Nil #

Atributos do modelo


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

Atributos do modelo


[View source]
def insurance_id : Int32 #

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

[View source]
def save(db) #

Método para salvar um novo sinistro (claim) no banco de dados


[View source]
def status : String #

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

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

[View source]