class OfficeRnd::OfficeRndAPI
- OfficeRnd::OfficeRndAPI
- PlaceOS::Driver
- Reference
- Object
Defined in:
office_rnd/office_rnd_api.crClass Method Summary
Instance Method Summary
-
#booking(booking_id : String)
Get a booking
-
#bookings(office_id : String | Nil = nil, member_id : String | Nil = nil, team_id : String | Nil = nil)
Get bookings
-
#create_booking(resource_id : String, booking_start : Time, booking_end : Time, summary : String | Nil = nil, team_id : String | Nil = nil, member_id : String | Nil = nil, description : String | Nil = nil, tentative : Bool | Nil = nil, free : Bool | Nil = nil)
Create a booking
-
#create_bookings(bookings : Array(Booking))
Make a booking
- #create_bookings(bookings : Array(BookingArgument))
-
#delete_booking(booking_id : String)
Delete a booking
- #expire_token!
-
#floor(floor_id : String)
Get a floor
-
#floors(office_id : String | Nil, name : String | Nil)
Get floors
- #get_header
- #get_token
-
#office(name : String)
Retrieve office
-
#offices
List offices
- #on_load
- #on_update
-
#resource_bookings(resource_id : String, range_start : Time = Time.utc - 5.minutes, range_end : Time = Time.utc + 24.hours, office_id : String | Nil = nil, member_id : String | Nil = nil, team_id : String | Nil = nil) : Array(Booking)
Get bookings for a resource for a given time span
-
#resources(type : Resource::Type | String | Nil = nil, name : String | Nil = nil, office_id : String | Nil = nil, available_from : Time | Nil = nil, available_to : Time | Nil = nil)
Get available rooms (resources) by - type - date range (available_from, available_to) - office (office_id) - resource name (name)
- #token_expired?
Class Method Detail
Instance Method Detail
def bookings(office_id : String | Nil = nil, member_id : String | Nil = nil, team_id : String | Nil = nil)
#
Get bookings
def create_booking(resource_id : String, booking_start : Time, booking_end : Time, summary : String | Nil = nil, team_id : String | Nil = nil, member_id : String | Nil = nil, description : String | Nil = nil, tentative : Bool | Nil = nil, free : Bool | Nil = nil)
#
Create a booking
def resource_bookings(resource_id : String, range_start : Time = Time.utc - 5.minutes, range_end : Time = Time.utc + 24.hours, office_id : String | Nil = nil, member_id : String | Nil = nil, team_id : String | Nil = nil) : Array(Booking)
#
Get bookings for a resource for a given time span
def resources(type : Resource::Type | String | Nil = nil, name : String | Nil = nil, office_id : String | Nil = nil, available_from : Time | Nil = nil, available_to : Time | Nil = nil)
#
Get available rooms (resources) by
- type
- date range (available_from, available_to)
- office (office_id)
- resource name (name)