Class: TelephoneAppointments::DroppedSummaryDocumentActivity

Inherits:
Object
  • Object
show all
Defined in:
lib/telephone_appointments/dropped_summary_document_activity.rb

Instance Method Summary collapse

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

#saveObject



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