class Place::Booking
- Place::Booking
- Reference
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
place/booking_model.crConstructors
- .new(id : Int64, booking_type : String, booking_start : Int64, booking_end : Int64, user_id : String, user_email : String, user_name : String, zones : Array(String), booked_by_name : String, booked_by_email : String, action : Nil | String = nil, timezone : Nil | String = nil, asset_id : Nil | String = nil, resource_id : Nil | String = nil, checked_in : Bool | Nil = nil, rejected : Bool | Nil = nil, approved : Bool | Nil = nil, process_state : Nil | String = nil, last_changed : Int64 | Nil = nil, approver_name : Nil | String = nil, approver_email : Nil | String = nil, title : Nil | String = nil, description : Nil | String = nil, asset_ids : Array(String) = [] of String, created : Int64 | Nil = nil, approver_id : Nil | String = nil, booked_by_id : Nil | String = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#action : String | Nil
This is to support events
-
#action=(action : String | Nil)
This is to support events
- #approved : Bool | Nil
- #approved=(approved : Bool | Nil)
- #approver_email : String | Nil
- #approver_email=(approver_email : String | Nil)
- #approver_id : String | Nil
- #approver_id=(approver_id : String | Nil)
- #approver_name : String | Nil
- #approver_name=(approver_name : String | Nil)
-
#asset_id : String
events use resource_id instead of asset_id
-
#asset_id=(asset_id : String | Nil)
events use resource_id instead of asset_id
- #asset_ids : Array(String)
- #asset_ids=(asset_ids : Array(String))
- #booked_by_email : String
- #booked_by_email=(booked_by_email : String)
- #booked_by_id : String | Nil
- #booked_by_id=(booked_by_id : String | Nil)
- #booked_by_name : String
- #booked_by_name=(booked_by_name : String)
- #booking_end : Int64
- #booking_end=(booking_end : Int64)
- #booking_start : Int64
- #booking_start=(booking_start : Int64)
- #booking_type : String
- #booking_type=(booking_type : String)
- #changed
- #checked_in : Bool
- #checked_in=(checked_in : Bool)
- #created : Int64 | Nil
- #created=(created : Int64 | Nil)
- #description : String | Nil
- #description=(description : String | Nil)
- #expand
- #extension_data : Hash(String, JSON::Any)
- #extension_data=(extension_data : Hash(String, JSON::Any))
- #id : Int64
- #id=(id : Int64)
- #in_progress?
- #last_changed : Int64 | Nil
- #last_changed=(last_changed : Int64 | Nil)
- #process_state : String | Nil
- #process_state=(process_state : String | Nil)
- #rejected : Bool | Nil
- #rejected=(rejected : Bool | Nil)
- #resource_id : String | Nil
- #resource_id=(resource_id : String | Nil)
- #timezone : String | Nil
- #timezone=(timezone : String | Nil)
- #title : String | Nil
- #title=(title : String | Nil)
- #user_email : String
- #user_email=(user_email : String)
- #user_id : String
- #user_id=(user_id : String)
- #user_name : String
- #user_name=(user_name : String)
- #zones : Array(String)
- #zones=(zones : Array(String))
Constructor Detail
def self.new(id : Int64, booking_type : String, booking_start : Int64, booking_end : Int64, user_id : String, user_email : String, user_name : String, zones : Array(String), booked_by_name : String, booked_by_email : String, action : Nil | String = nil, timezone : Nil | String = nil, asset_id : Nil | String = nil, resource_id : Nil | String = nil, checked_in : Bool | Nil = nil, rejected : Bool | Nil = nil, approved : Bool | Nil = nil, process_state : Nil | String = nil, last_changed : Int64 | Nil = nil, approver_name : Nil | String = nil, approver_email : Nil | String = nil, title : Nil | String = nil, description : Nil | String = nil, asset_ids : Array(String) = [] of String, created : Int64 | Nil = nil, approver_id : Nil | String = nil, booked_by_id : Nil | String = nil)
#