class Bookings
- Bookings
- Application
- ActionController::Base
- Reference
- Object
Defined in:
controllers/bookings.crConstant Summary
-
NAMESPACE =
["/api/staff/v1/bookings"]
-
default namespace based on class
-
PARSER_LIST =
["application/json"]
-
RESPONDER_LIST =
["application/json"]
Class Method Summary
-
.base_route
Helper for obtaining base route
-
.update_alt(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
Helper methods for performing redirect_to calls
Instance Method Summary
- #approve
-
#base_route(*args, **options)
Helper for obtaining base route
-
#base_route(*args, **options, &)
Helper for obtaining base route
- #booking : Booking
- #check_in
- #confirm_access
- #create
- #destroy
- #find_booking
- #index
-
#json_parse_exception(error)
Create functions as required for errors Skip the generating methods for existing handlers
- #reject
- #set_approver(booking, approved : Bool)
- #show
- #update
- #update_alt
- #update_booking(booking, signal = "changed")
Instance methods inherited from class Application
attending_guest(visitor : Attendee | Nil, guest : Guest | Nil, parent_meta = false, meeting_details = nil)
attending_guest,
check_jwt_scope
check_jwt_scope,
configure_request_logging
configure_request_logging,
get_event(event_id, cal_id)
get_event,
get_timezone
get_timezone,
standard_event(calendar_id, system, event, metadata, is_parent_metadata = false)
standard_event
Instance methods inherited from module Utils::Responders
restrict_attributes(model, only : Array(String) | Nil = nil, except : Array(String) | Nil = nil, fields : Hash | Nil = nil) : Hash
restrict_attributes,
with_fields(model, fields) : Hash
with_fields
Instance methods inherited from module Utils::CurrentUser
authorize!
authorize!,
check_admin
check_admin,
check_support
check_support,
is_admin?
is_admin?,
is_support?
is_support?,
user_token : UserJWT
user_token
Instance methods inherited from module Utils::GoogleHelpers
calendar_for(sub = ADMIN_ACCOUNT)
calendar_for,
google_directory(user_token : String, view_type = "admin_view")google_directory google_directory
Instance methods inherited from module Utils::PlaceOSHelpers
check_access(groups : Array(String), check : Array(String))
check_access,
get_placeos_client : PlaceOS::Client
get_placeos_client,
get_user_calendars
get_user_calendars,
matching_calendar_ids
matching_calendar_ids
Class Method Detail
def self.update_alt(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
#
Helper methods for performing redirect_to calls
Instance Method Detail
def json_parse_exception(error)
#
Create functions as required for errors Skip the generating methods for existing handlers