class Claim
- Claim
- Reference
- Object
Defined in:
claim/model.crConstructors
Class Method Summary
- .delete(db, id : Int32)
-
.get_all(db) : ListOfClaims
Método para obter todos os sinistros
- .get_by_id(db, id : Int32)
- .get_by_insurance_id(db, insurance_id : Int32)
- .transform_claims(claims : DBResult) : ListOfClaims
Instance Method Summary
- #claim_amount : Float64
- #claim_amount=(claim_amount : Float64)
- #claim_date : String
- #claim_date=(claim_date : String)
- #claim_number : Float64
- #claim_number=(claim_number : Float64)
- #end_date : String | Nil
- #end_date=(end_date : String | Nil)
-
#id : Int32 | Nil
Atributos do modelo
-
#id=(id : Int32 | Nil)
Atributos do modelo
- #insurance_id : Int32
- #insurance_id=(insurance_id : Int32)
-
#save(db)
Método para salvar um novo sinistro (claim) no banco de dados
- #status : String
- #status=(status : String)
- #update(db, id : Int32)
Constructor Detail
def self.new(insurance_id : Int32, claim_number : Float64, claim_date : String, end_date : String | Nil, claim_amount : Float64, status : String)
#
Construtor