class OfficeRnd::OfficeRndAPI

Defined in:

office_rnd/office_rnd_api.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def booking(booking_id : String) #

Get a booking


[View source]
def bookings(office_id : String | Nil = nil, member_id : String | Nil = nil, team_id : String | Nil = nil) #

Get bookings


[View source]
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


[View source]
def create_bookings(bookings : Array(Booking)) #

Make a booking


[View source]
def create_bookings(bookings : Array(BookingArgument)) #

[View source]
def delete_booking(booking_id : String) #

Delete a booking


[View source]
def expire_token! #

[View source]
def floor(floor_id : String) #

Get a floor


[View source]
def floors(office_id : String | Nil, name : String | Nil) #

Get floors


[View source]
def get_header #

[View source]
def get_token #

[View source]
def office(name : String) #

Retrieve office


[View source]
def offices #

List offices


[View source]
def on_load #

[View source]
def on_update #

[View source]
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


[View source]
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)

[View source]
def token_expired? #

[View source]