Class: Hcp::Job::Appointment
- Defined in:
- lib/hcp/resources/job/appointment.rb
Overview
One visit a job is booked for, where the work takes more than a single trip.
Class Method Summary collapse
-
.key ⇒ Object
What Housecall Pro calls a list of them.
Instance Method Summary collapse
-
#anytime? ⇒ Boolean
Whether the visit is booked for a day rather than for a time.
- #arrival_window ⇒ Integer, ...
-
#dispatched_employee_ids ⇒ Array<String>
The IDs of the pros sent on the visit.
- #ends_at ⇒ Time?
- #starts_at ⇒ Time?
Methods inherited from Resource
amount, attribute, #id, #initialize, timestamp
Constructor Details
This class inherits a constructor from Hcp::Resource
Class Method Details
.key ⇒ Object
What Housecall Pro calls a list of them.
5 |
# File 'lib/hcp/resources/job/appointment.rb', line 5 def self.key = 'appointments' |
Instance Method Details
#anytime? ⇒ Boolean
Returns whether the visit is booked for a day rather than for a time.
17 |
# File 'lib/hcp/resources/job/appointment.rb', line 17 def anytime? = @node['anytime'] |
#arrival_window ⇒ Integer, ...
14 |
# File 'lib/hcp/resources/job/appointment.rb', line 14 attribute :arrival_window, :arrival_window_minutes |
#dispatched_employee_ids ⇒ Array<String>
Returns the IDs of the pros sent on the visit.
20 |
# File 'lib/hcp/resources/job/appointment.rb', line 20 def dispatched_employee_ids = Array(@node['dispatched_employees_ids']) |
#ends_at ⇒ Time?
11 |
# File 'lib/hcp/resources/job/appointment.rb', line 11 :ends_at, :end_time |
#starts_at ⇒ Time?
8 |
# File 'lib/hcp/resources/job/appointment.rb', line 8 :starts_at, :start_time |