class Vecos::Releezme

Defined in:

vecos/releezme.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def bank(bank_id : String) #

[View source]
def bank_group_lockers_available(bank_id : String, group_id : String) #

[View source]
def bank_groups(bank_id : String) #

[View source]
def bank_locker_allocations(bank_id : String) #

NOTE : Only accessible to System Control Clients


[View source]
def bank_lockers(bank_id : String) #

returns all the lockers in the bank without paging (but paging json is included)


[View source]
def banks #

[View source]
def bearer_token : String #

[View source]
def book_locker(starting : Int64, ending : Int64, user_id : String, locker_id : String | Nil = nil, group_id : String | Nil = nil, bank_id : String | Nil = nil, timezone : String = "UTC") #

[View source]
def bookings(user_id : String) #

[View source]
def bookings_availability(user_id : String, starting : Int64, ending : Int64, section_id : String | Nil = nil, location_id : String | Nil = nil, bank_id : String | Nil = nil, group_id : String | Nil = nil, locker_id : String | Nil = nil) #

[View source]
def can_allocate_locker?(user_id : String) : String #

check if a user can be allocated a new locker


[View source]
def can_share_locker_with?(locker_id : String, owner_id : String, search : String) #

[View source]
def companies #

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

[View source]
def fetch_pages(location : String) : Array(JSON::Any) #

[View source]
def group(group_id : String) #

[View source]
def group_locker_banks(group_id : String) #

[View source]
def groups #

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

[View source]
def location_sections(location_id : String) #

typically these are floors in the building


[View source]
def locations #

typically these are buildings


[View source]
def locker_allocate(locker_id : String, user_id : String) #

[View source]
def locker_allocate_random(bank_id : String, group_id : String, user_id : String) #

[View source]
def locker_release(locker_id : String, user_id : String | Nil = nil) : Nil #

[View source]
def locker_shared_with?(locker_id : String, owner_id : String) #

[View source]
def locker_unlock(locker_id : String, pin_code : String | Nil = nil) #

[View source]
def lockers_allocated_to(user_id : String) #

the lockers that are currently allocated to the specified user the user ID is typically email - defined by the client


[View source]
def on_update #

[View source]
def section(section_id : String) #

[View source]
def section_banks_allocatable(section_id : String, user_id : String) #

banks and groups in the banks that the user can allocate to themselves


[View source]
def section_locker_banks(section_id : String) #

[View source]
def sections #

all floors from all buildings in one request


[View source]
def share_locker_with(locker_id : String, owner_id : String, user_id : String) : Bool #

[View source]
def unshare_locker(locker_id : String, owner_id : String, shared_with_internal_id : String | Nil = nil) : Bool #

[View source]