class GoBright::API

Defined in:

gobright/api.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def bookings(starting : Int64, ending : Int64, location_id : String | Array(String) | Nil = nil, space_id : String | Array(String) | Nil = nil) #

the list of booking occurances in the time period specified


[View source]
def fetch(location : String) : String #

[View source]
def live_occupancy(location : String, type : SpaceType | Nil = nil) #

the occupancy status of the spaces


[View source]
def locations #

the list of buildings, levels, areas etc


[View source]
def on_load #

[View source]
def on_update #

[View source]
def spaces(location : String | Nil = nil, types : SpaceType | Array(SpaceType) | Nil = nil) #

a list of spaces in the locations. rooms, desks and parking


[View source]
def spaces_state(location : String | Nil = nil, types : SpaceType | Array(SpaceType) | Nil = nil) #

Paged list of state per space, filtered by location/spacetype


[View source]