struct PlaceOS::Model::User::WorktimePreference
- PlaceOS::Model::User::WorktimePreference
- Struct
- Value
- Object
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
- JSON::Serializable
Defined in:
placeos-models/user.crConstructors
- .new(day_of_week : Int64, start_time : Float64, end_time : Float64, location : String = "")
- .new(pull : JSON::PullParser)
Instance Method Summary
- #clone
- #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)
- #day_of_week : Int64
- #end_time : Float64
- #location : String
- #start_time : Float64
Constructor Detail
def self.new(day_of_week : Int64, start_time : Float64, end_time : Float64, location : String = "")
#
Instance Method Detail
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)
#