class Place::Locker
- Place::Locker
- Reference
- Object
Overview
re-open class to add some helpers
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
place/bookings/locker_booking_sync_spec.crplace/bookings/locker_models.cr
place/demo/lockers.cr
Constructors
- .new(id : String, name : Nil | String, bank_id : String, bookable : Bool | Nil, level_id : Nil | String)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #allocated? : Bool
- #allocated_at : Time | Nil
- #allocated_at=(allocated_at : Time | Nil)
-
#allocated_to : String | Nil
for tracking, not part of metadata
-
#allocated_to=(allocated_to : String | Nil)
for tracking, not part of metadata
- #allocated_until : Time | Nil
- #allocated_until=(allocated_until : Time | Nil)
- #bank_id : String
- #bookable : Bool
- #id : String
-
#level_id : String | Nil
for tracking, not part of metadata
-
#level_id=(level_id : String | Nil)
for tracking, not part of metadata
- #name : String
- #not_allocated? : Bool
- #release
- #shared_with : Array(String)
- #shared_with=(shared_with : Array(String))
Constructor Detail
def self.new(id : String, name : Nil | String, bank_id : String, bookable : Bool | Nil, level_id : Nil | String)
#