Class: Hcp::Schedule
Overview
When work is booked for, and how long a window the customer was given.
Instance Method Summary collapse
-
#appointments ⇒ Array<Job::Appointment>
Housecall Pro leaves these out unless a list was asked to bring them back, so a job read without
includes(:appointments)has none of them rather than none at all. - #arrival_window ⇒ Integer, ...
- #ends_at ⇒ Time?
- #starts_at ⇒ Time?
- #time_zone ⇒ String?
Methods inherited from Resource
amount, attribute, #id, #initialize, timestamp
Constructor Details
This class inherits a constructor from Hcp::Resource
Instance Method Details
#appointments ⇒ Array<Job::Appointment>
Housecall Pro leaves these out unless a list was asked to bring them back, so a job read
without includes(:appointments) has none of them rather than none at all.
19 |
# File 'lib/hcp/resources/schedule.rb', line 19 def appointments = records Job::Appointment, 'appointments' |
#arrival_window ⇒ Integer, ...
14 |
# File 'lib/hcp/resources/schedule.rb', line 14 attribute :arrival_window |
#ends_at ⇒ Time?
8 |
# File 'lib/hcp/resources/schedule.rb', line 8 :ends_at, :scheduled_end |
#starts_at ⇒ Time?
5 |
# File 'lib/hcp/resources/schedule.rb', line 5 :starts_at, :scheduled_start |
#time_zone ⇒ String?
11 |
# File 'lib/hcp/resources/schedule.rb', line 11 attribute :time_zone |