Class: HaloMspApi::Resources::Appointments
- Defined in:
- lib/halo_msp_api/resources/appointments.rb
Overview
Resource class for Appointments
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#appointment(id, params = {}) ⇒ Object
GET /Appointment/id - Get a specific Appointment.
-
#appointments(params = {}) ⇒ Object
GET /Appointment - List of Appointments.
-
#availability(params = {}) ⇒ Object
GET /Appointment/Availability - Get Appointment availability.
-
#calendar(params = {}) ⇒ Object
GET /Appointment/Calendar - Get Appointment calendar.
-
#check_availability(data) ⇒ Object
POST /Appointment/CheckAvailability - Check Appointment availability.
-
#create_appointment(data) ⇒ Object
POST /Appointment - Create a new Appointment.
-
#create_slots(data) ⇒ Object
POST /Appointment/Slots - Create Appointment slots.
-
#create_type(data) ⇒ Object
POST /Appointment/Types - Create Appointment type.
-
#delete_appointment(id) ⇒ Object
DELETE /Appointment/id - Delete an Appointment.
-
#slots(params = {}) ⇒ Object
GET /Appointment/Slots - Get Appointment slots.
-
#types(params = {}) ⇒ Object
GET /Appointment/Types - Get Appointment types.
-
#update_appointment(id, data) ⇒ Object
PUT /Appointment/id - Update an Appointment.
Methods inherited from Base
Constructor Details
This class inherits a constructor from HaloMspApi::Resources::Base
Instance Method Details
#appointment(id, params = {}) ⇒ Object
GET /Appointment/id - Get a specific Appointment
13 14 15 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 13 def appointment(id, params = {}) get_resource('Appointment', id, params) end |
#appointments(params = {}) ⇒ Object
GET /Appointment - List of Appointments
8 9 10 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 8 def appointments(params = {}) list_resource('Appointment', params) end |
#availability(params = {}) ⇒ Object
GET /Appointment/Availability - Get Appointment availability
33 34 35 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 33 def availability(params = {}) get_resource('Appointment', 'Availability', params) end |
#calendar(params = {}) ⇒ Object
GET /Appointment/Calendar - Get Appointment calendar
38 39 40 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 38 def calendar(params = {}) get_resource('Appointment', 'Calendar', params) end |
#check_availability(data) ⇒ Object
POST /Appointment/CheckAvailability - Check Appointment availability
43 44 45 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 43 def check_availability(data) post(resource_path('Appointment', nil, 'CheckAvailability'), data) end |
#create_appointment(data) ⇒ Object
POST /Appointment - Create a new Appointment
18 19 20 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 18 def create_appointment(data) create_resource('Appointment', data) end |
#create_slots(data) ⇒ Object
POST /Appointment/Slots - Create Appointment slots
53 54 55 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 53 def create_slots(data) create_resource('Appointment', 'Slots', data) end |
#create_type(data) ⇒ Object
POST /Appointment/Types - Create Appointment type
63 64 65 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 63 def create_type(data) create_resource('Appointment', 'Types', data) end |
#delete_appointment(id) ⇒ Object
DELETE /Appointment/id - Delete an Appointment
28 29 30 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 28 def delete_appointment(id) delete_resource('Appointment', id) end |
#slots(params = {}) ⇒ Object
GET /Appointment/Slots - Get Appointment slots
48 49 50 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 48 def slots(params = {}) list_resource('Appointment', 'Slots', params) end |
#types(params = {}) ⇒ Object
GET /Appointment/Types - Get Appointment types
58 59 60 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 58 def types(params = {}) list_resource('Appointment', 'Types', params) end |
#update_appointment(id, data) ⇒ Object
PUT /Appointment/id - Update an Appointment
23 24 25 |
# File 'lib/halo_msp_api/resources/appointments.rb', line 23 def update_appointment(id, data) update_resource('Appointment', id, data) end |