class Place::Booking

Included Modules

Extended Modules

Defined in:

place/booking_model.cr

Constructors

Instance Method Summary

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) #

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

[View source]

Instance Method Detail

def action : String | Nil #

This is to support events


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

This is to support events


[View source]
def approved : Bool | Nil #

[View source]
def approved=(approved : Bool | Nil) #

[View source]
def approver_email : String | Nil #

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

[View source]
def approver_id : String | Nil #

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

[View source]
def approver_name : String | Nil #

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

[View source]
def asset_id : String #

events use resource_id instead of asset_id


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

events use resource_id instead of asset_id


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

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

[View source]
def booked_by_email : String #

[View source]
def booked_by_email=(booked_by_email : String) #

[View source]
def booked_by_id : String | Nil #

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

[View source]
def booked_by_name : String #

[View source]
def booked_by_name=(booked_by_name : String) #

[View source]
def booking_end : Int64 #

[View source]
def booking_end=(booking_end : Int64) #

[View source]
def booking_start : Int64 #

[View source]
def booking_start=(booking_start : Int64) #

[View source]
def booking_type : String #

[View source]
def booking_type=(booking_type : String) #

[View source]
def changed #

[View source]
def checked_in : Bool #

[View source]
def checked_in=(checked_in : Bool) #

[View source]
def created : Int64 | Nil #

[View source]
def created=(created : Int64 | Nil) #

[View source]
def description : String | Nil #

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

[View source]
def expand #

[View source]
def extension_data : Hash(String, JSON::Any) #

[View source]
def extension_data=(extension_data : Hash(String, JSON::Any)) #

[View source]
def id : Int64 #

[View source]
def id=(id : Int64) #

[View source]
def in_progress? #

[View source]
def last_changed : Int64 | Nil #

[View source]
def last_changed=(last_changed : Int64 | Nil) #

[View source]
def process_state : String | Nil #

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

[View source]
def rejected : Bool | Nil #

[View source]
def rejected=(rejected : Bool | Nil) #

[View source]
def resource_id : String | Nil #

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

[View source]
def timezone : String | Nil #

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

[View source]
def title : String | Nil #

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

[View source]
def user_email : String #

[View source]
def user_email=(user_email : String) #

[View source]
def user_id : String #

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

[View source]
def user_name : String #

[View source]
def user_name=(user_name : String) #

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

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

[View source]