Sha256: 342692ad86154d22253f3dd2ade01894b319ffdf02cfcd70f4b83e49fa6ef32f
Contents?: true
Size: 481 Bytes
Versions: 20
Compression:
Stored size: 481 Bytes
Contents
module Renalware module Clinics class BuildVisitFromAppointment def initialize(appointment) @appointment = appointment end def call(opts = {}) visit = appointment.patient.clinic_visits.build(opts) visit.clinic = appointment.clinic starts_at = appointment.starts_at visit.date = starts_at.to_date visit.time = starts_at visit end private attr_reader :appointment end end end
Version data entries
20 entries across 20 versions & 1 rubygems