Class: BookingGroup

Inherits:
SlotGroup
  • Object
show all
Includes:
ActiveSupport::Callbacks
Defined in:
app/models/booking_group.rb

Overview

This is an implementation of SlotGroup; it represents a group of bookings.

A kind of SlotGroup that relates to Bookings so that batch operations can be performed on them.

Schema Information

Table name: slot_groups

id                 :integer          not null, primary key
monday             :boolean          default("false"), not null
tuesday            :boolean          default("false"), not null
wednesday          :boolean          default("false"), not null
thursday           :boolean          default("false"), not null
friday             :boolean          default("false"), not null
saturday           :boolean          default("false"), not null
sunday             :boolean          default("false"), not null
weekly             :boolean          default("false"), not null
monthly            :boolean          default("false"), not null
capacity           :integer          default("1"), not null
ends_on            :date
created_at         :datetime         not null
updated_at         :datetime         not null
type               :string           not null
starts_at          :datetime         not null
ends_at            :datetime         not null
provider_id        :integer
affiliation_id     :integer
free_slot_group_id :integer

Method Summary

Methods inherited from SlotGroup

#cant_change_past, #end_by_date_is_future, #number_of_slots_is_at_least_2, #number_of_slots_is_correct, #starts_and_ends_in_the_same_day, #starts_before_ends, #weekly_and_monthly_are_not_simultaneously_selected, #write_attribute