Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
recrutement-ddd
master
CandidateRepository
Model
DTO
Candidate
Interview
Recruiter
Room
Skill
TimeSlot
Hiring
CancelInterview
Candidate
Hr
HumanRessource
Interview
Status
Recruiter
Rooms
Room
TimeSlot
ScheduleInterview
Skill
TimeSlot
InterviewRepository
Model
RecruiterRepository
Model
Repository
RoomRepository
Model
Built with Crystal 1.9.2
2023-10-07 10:49:18 UTC
class
Hiring::TimeSlot
Hiring::TimeSlot
Reference
Object
Defined in:
model/hiring/time_slot.cr
Constant Summary
MAX_DURATION
=
Time
::
Span
.new(hours:
3
)
Constructors
.new
(start_at : Time, end_at : Time)
.new
(availability : DTO::TimeSlot)
Class Method Summary
.remerge
(timeslots : Array(TimeSlot))
.split_with
(actual, busy) : Tuple(TimeSlot, TimeSlot)
Instance Method Summary
#==
(availability : TimeSlot)
#match?
(availability : TimeSlot)
#to_dto
Constructor Detail
def self.
new
(start_at : Time, end_at : Time)
#
[
View source
]
def self.
new
(availability :
DTO::TimeSlot
)
#
[
View source
]
Class Method Detail
def self.
remerge
(timeslots : Array(
TimeSlot
))
#
[
View source
]
def self.
split_with
(actual, busy) : Tuple(
TimeSlot
,
TimeSlot
)
#
[
View source
]
Instance Method Detail
def
==
(availability :
TimeSlot
)
#
[
View source
]
def
match?
(availability :
TimeSlot
)
#
[
View source
]
def
to_dto
#
[
View source
]