class Place::AutoRelease

Included Modules

Defined in:

place/auto_release.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def building_zone : Zone #

[View source]
def enabled? : Bool #

[View source]
def get_building_zone? : Zone | Nil #

Finds the building zone for the current location services object


[View source]
def get_pending_bookings : Array(Booking) #

[View source]
def get_user_preferences?(user_id : String) #

[View source]
def in_preference?(preference : WorktimePreference, event_time : Float64, locations : Array(String), match_locations : Bool = true) : Bool #

[View source]
def in_preference_hours?(start_time : Float64, end_time : Float64, event_time : Float64) : Bool #

[View source]
def mailer #

[View source]
def on_update #

[View source]
def pending_release #

[View source]
def release_bookings #

[View source]
def send_release_emails #

[View source]
def skip_release?(cached_booking : Booking) : Bool #

[View source]
def template_fields : Array(TemplateFields) #
Description copied from module PlaceOS::Driver::Interface::MailerTemplates

[ 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


[View source]