Class: TelephoneAppointments::DroppedSummaryDocumentActivity
- Inherits:
-
Object
- Object
- TelephoneAppointments::DroppedSummaryDocumentActivity
- Defined in:
- lib/telephone_appointments/dropped_summary_document_activity.rb
Instance Method Summary collapse
-
#initialize(appointment_id) ⇒ DroppedSummaryDocumentActivity
constructor
A new instance of DroppedSummaryDocumentActivity.
- #save ⇒ Object
Constructor Details
#initialize(appointment_id) ⇒ DroppedSummaryDocumentActivity
Returns a new instance of DroppedSummaryDocumentActivity.
3 4 5 |
# File 'lib/telephone_appointments/dropped_summary_document_activity.rb', line 3 def initialize(appointment_id) @appointment_id = appointment_id end |
Instance Method Details
#save ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/telephone_appointments/dropped_summary_document_activity.rb', line 7 def save response = TelephoneAppointments.api.post( "/api/v1/appointments/#{@appointment_id}/dropped_summary_documents" ) response.success? end |