class Place::Locker

Overview

re-open class to add some helpers

Included Modules

Extended Modules

Defined in:

place/bookings/locker_booking_sync_spec.cr
place/bookings/locker_models.cr
place/demo/lockers.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, name : Nil | String, bank_id : String, bookable : Bool | Nil, level_id : Nil | String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def allocated? : Bool #

[View source]
def allocated_at : Time | Nil #

[View source]
def allocated_at=(allocated_at : Time | Nil) #

[View source]
def allocated_to : String | Nil #

for tracking, not part of metadata


[View source]
def allocated_to=(allocated_to : String | Nil) #

for tracking, not part of metadata


[View source]
def allocated_until : Time | Nil #

[View source]
def allocated_until=(allocated_until : Time | Nil) #

[View source]
def bank_id : String #

[View source]
def bookable : Bool #

[View source]
def id : String #

[View source]
def level_id : String | Nil #

for tracking, not part of metadata


[View source]
def level_id=(level_id : String | Nil) #

for tracking, not part of metadata


[View source]
def name : String #

[View source]
def not_allocated? : Bool #

[View source]
def release #

[View source]
def shared_with : Array(String) #

[View source]
def shared_with=(shared_with : Array(String)) #

[View source]