class Updox::Models::Appointment
Constants
- SYNC_ENDPOINT
- SYNC_LIST_TYPE
Public Class Methods
exists?(appointment_id, account_id: , cached_query: nil)
click to toggle source
# File lib/updox/models/appointment.rb, line 44 def self.exists?(appointment_id, account_id: , cached_query: nil) Updox::Models::AppointmentStatus.exists?(appointment_id, account_id: account_id, cached_query: cached_query) end
Public Instance Methods
save(account_id: )
click to toggle source
# File lib/updox/models/appointment.rb, line 40 def save(account_id: ) self.class.sync([self], account_id: account_id) end
to_h()
click to toggle source
Calls superclass method
# File lib/updox/models/appointment.rb, line 32 def to_h result = super.to_h result['date'] = result['date'].strftime(Updox::Models::DATETIME_FORMAT) if result['date'].respond_to?(:strftime) result end