class

Report

Inherits Reference < Object

Constructors

new(title : String, content : String, report_type : String, user_id : Int64, id : Int64 | Nil = nil, created_at : Time | Nil = nil)
Source

Class methods

all(limit : Int32 = 20, offset : Int32 = 0, user_id : Int64 | Nil = nil, report_type : String | Nil = nil) : Array(Report)
Source
count(user_id : Int64 | Nil = nil, report_type : String | Nil = nil) : Int64
Source
csv_header
Source
find(id : Int64) : Report | Nil
Source

Instance methods

content
Source
content=(content : String)
Source
created_at
Source
created_at=(created_at : Time | Nil)
Source
delete
Source
id=(id : Int64 | Nil)
Source
report_type
Source
report_type=(report_type : String)
Source
save
Source
title
Source
title=(title : String)
Source
to_csv
Source
to_json(json : JSON::Builder)
Source
user_id
Source
user_id=(user_id : Int64)
Source