class Place::AutoRelease
- Place::AutoRelease
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::MailerTemplates
Defined in:
place/auto_release.crClass Method Summary
Instance Method Summary
- #building_zone : Zone
- #enabled? : Bool
-
#get_building_zone? : Zone | Nil
Finds the building zone for the current location services object
- #get_pending_bookings : Array(Booking)
- #get_user_preferences?(user_id : String)
- #in_preference?(preference : WorktimePreference, event_time : Float64, locations : Array(String), match_locations : Bool = true) : Bool
- #in_preference_hours?(start_time : Float64, end_time : Float64, event_time : Float64) : Bool
- #mailer
- #on_update
- #pending_release
- #release_bookings
- #send_release_emails
- #skip_release?(cached_booking : Booking) : Bool
-
#template_fields : Array(TemplateFields)
[ TemplateFields.new( trigger: {"bookings", "booked_by_notify"}, name: "Booking booked by notification", description: nil, fields: common_fields ), TemplateFields.new( trigger: {"bookings", "booking_notify"}, name: "Booking notification", description: "This template is used for booking notifications", fields: common_fields + [ {name: "start_time", description: "The start time of the booking"}, ] ), ] end
Class Method Detail
Instance Method Detail
Finds the building zone for the current location services object
[ TemplateFields.new( trigger: {"bookings", "booked_by_notify"}, name: "Booking booked by notification", description: nil, fields: common_fields ), TemplateFields.new( trigger: {"bookings", "booking_notify"}, name: "Booking notification", description: "This template is used for booking notifications", fields: common_fields + [ {name: "start_time", description: "The start time of the booking"}, ] ), ] end