struct DaySummaryEntry

Defined in:

day_summary_entry.cr

Constant Summary

HOURS_PER_DAY = {Time::DayOfWeek::Monday => 8, Time::DayOfWeek::Tuesday => 8, Time::DayOfWeek::Wednesday => 8, Time::DayOfWeek::Thursday => 8, Time::DayOfWeek::Friday => 8, Time::DayOfWeek::Saturday => 0, Time::DayOfWeek::Sunday => 0}

Constructors

Instance Method Summary

Constructor Detail

def self.new(day : Time, spans : Array(NamedTuple(from: NamedTuple(time: Time, draft: Bool), to: NamedTuple(time: Time | Nil, draft: Bool), project: String | Nil)), sum : Time::Span) #

[View source]

Instance Method Detail

def day : Time #

[View source]
def diff_in_hours #

[View source]
def empty? #

[View source]
def projects #

[View source]
def spans : Array({from: {time: Time, draft: Bool}, to: {time: Time?, draft: Bool}, project: String?}) #

[View source]
def sum : Time::Span #

[View source]
def sum_in_hours #

[View source]