Class: Luma::Appointment
- Inherits:
-
Connection
- Object
- Connection
- Luma::Appointment
- Defined in:
- lib/luma/appointment.rb
Constant Summary collapse
- APPOINTMENT_ENDPOINT =
'/api/appointments'.freeze
Constants inherited from Connection
Instance Method Summary collapse
- #create_appointment(endpoint: APPOINTMENT_ENDPOINT, body: nil, headers: {}, auth: true, verb: :post, debug_output: $stdout) ⇒ Object
- #update_appointment(appt_identifier, endpoint: APPOINTMENT_ENDPOINT, body: nil, headers: {}, auth: true, verb: :put, debug_output: $stdout) ⇒ Object
Methods inherited from Connection
#add_header, #initialize, #luma_request, #request
Constructor Details
This class inherits a constructor from Luma::Connection
Instance Method Details
#create_appointment(endpoint: APPOINTMENT_ENDPOINT, body: nil, headers: {}, auth: true, verb: :post, debug_output: $stdout) ⇒ Object
7 8 9 |
# File 'lib/luma/appointment.rb', line 7 def create_appointment(endpoint: APPOINTMENT_ENDPOINT, body: nil, headers: {}, auth: true, verb: :post, debug_output: $stdout) luma_request(auth: auth, body: body, endpoint: endpoint, verb: verb) end |
#update_appointment(appt_identifier, endpoint: APPOINTMENT_ENDPOINT, body: nil, headers: {}, auth: true, verb: :put, debug_output: $stdout) ⇒ Object
11 12 13 |
# File 'lib/luma/appointment.rb', line 11 def update_appointment(appt_identifier, endpoint: APPOINTMENT_ENDPOINT, body: nil, headers: {}, auth: true, verb: :put, debug_output: $stdout) luma_request(auth: auth, body: body, endpoint: endpoint, identifier: appt_identifier, verb: :put) end |