class Entry

Included Modules

Defined in:

models/entry.cr:1
models/entry.cr:3

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.last_updated_at #

[View source]
def self.spent_between(from : Time, to : Time) #

Get time entries between dates.


[View source]

Instance Method Detail

def created_at : Time #

[View source]
def created_at=(created_at : Time) #

[View source]
def hours : Float64 #

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

[View source]
def id : Int64 | Nil #

[View source]
def id! : Int64 #

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

[View source]
def is_billed : Bool #

[View source]
def is_billed=(is_billed : Bool) #

[View source]
def is_closed : Bool #

[View source]
def is_closed=(is_closed : Bool) #

[View source]
def notes : String #

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

[View source]
def project : Project | Nil #

[View source]
def project! : Project #

[View source]
def project=(parent : Project) #

[View source]
def project_id : Int64 | Nil #

def project_id! : Int64 #

def project_id=(project_id : Int64 | Nil) #

def rounded_hours : Float64 #

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

[View source]
def set_timestamps(*, to time = Time.local(Granite.settings.default_timezone), mode = :create) #

Override Granites created_at/updated_at handling.


[View source]
def spent_at : String #

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

[View source]
def task : Task | Nil #

[View source]
def task! : Task #

[View source]
def task=(parent : Task) #

[View source]
def task_id : Int64 | Nil #

def task_id! : Int64 #

def task_id=(task_id : Int64 | Nil) #

def timer_started_at : Time | Nil #

[View source]
def timer_started_at! : Time #

[View source]
def timer_started_at=(timer_started_at : Time | Nil) #

[View source]
def updated_at : Time #

[View source]
def updated_at=(updated_at : Time) #

[View source]
def user : User | Nil #

[View source]
def user! : User #

[View source]
def user=(parent : User) #

[View source]
def user_id : Int64 | Nil #

def user_id! : Int64 #

def user_id=(user_id : Int64 | Nil) #