class Entry
- Entry
- Granite::Base
- Reference
- Object
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
models/entry.cr:1models/entry.cr:3
Constructors
Class Method Summary
- .last_updated_at
-
.spent_between(from : Time, to : Time)
Get time entries between dates.
Instance Method Summary
- #created_at : Time
- #created_at=(created_at : Time)
- #hours : Float64
- #hours=(hours : Float64)
- #id : Int64 | Nil
- #id! : Int64
- #id=(id : Int64 | Nil)
- #is_billed : Bool
- #is_billed=(is_billed : Bool)
- #is_closed : Bool
- #is_closed=(is_closed : Bool)
- #notes : String
- #notes=(notes : String)
- #project : Project | Nil
- #project! : Project
- #project=(parent : Project)
- #project_id : Int64 | Nil
- #project_id! : Int64
- #project_id=(project_id : Int64 | Nil)
- #rounded_hours : Float64
- #rounded_hours=(rounded_hours : Float64)
-
#set_timestamps(*, to time = Time.local(Granite.settings.default_timezone), mode = :create)
Override Granites created_at/updated_at handling.
- #spent_at : String
- #spent_at=(spent_at : String)
- #task : Task | Nil
- #task! : Task
- #task=(parent : Task)
- #task_id : Int64 | Nil
- #task_id! : Int64
- #task_id=(task_id : Int64 | Nil)
- #timer_started_at : Time | Nil
- #timer_started_at! : Time
- #timer_started_at=(timer_started_at : Time | Nil)
- #updated_at : Time
- #updated_at=(updated_at : Time)
- #user : User | Nil
- #user! : User
- #user=(parent : User)
- #user_id : Int64 | Nil
- #user_id! : Int64
- #user_id=(user_id : Int64 | Nil)
Constructor Detail
Class Method Detail
Instance Method Detail
Override Granites created_at/updated_at handling.