struct PlaceOS::Model::User::WorktimePreference

Overview

day_of_week: Index of the day of the week. 0 being Sunday start_time: Start time of work hours. e.g. 7.5 being 7:30AM end_time: End time of work hours. e.g. 18.5 being 6:30PM location: Name of the location the work is being performed at

Included Modules

Defined in:

placeos-models/user.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(day_of_week : Int64, start_time : Float64, end_time : Float64, location : String = "") #

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

Instance Method Detail

def clone #

def copy_with(day_of_week _day_of_week = @day_of_week, start_time _start_time = @start_time, end_time _end_time = @end_time, location _location = @location) #

def day_of_week : Int64 #

def end_time : Float64 #

def location : String #

def start_time : Float64 #