struct DaySummaryEntry
- DaySummaryEntry
- Struct
- Value
- Object
Defined in:
day_summary_entry.crConstant 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
- #day : Time
- #diff_in_hours
- #empty?
- #projects
- #spans : Array({from: {time: Time, draft: Bool}, to: {time: Time?, draft: Bool}, project: String?})
- #sum : Time::Span
- #sum_in_hours
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)
#
Instance Method Detail
def spans : Array({from: {time: Time, draft: Bool}, to: {time: Time?, draft: Bool}, project: String?})
#