Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [1] pry(main)> Appointment.all
- # Our first appointment using the appointment class to create an appointment
- => [#<Appointment:0x007fd92022b2e8
- @date="2018-11-15",
- @doctor=#<Doctor:0x007fd92022b478 @name="Dr. James Johnson">,
- @patient=#<Patient:0x007fd92022b428 @name="Kody Clemens">>,
- # Our second appointment, created using the patient instance method
- #<Appointment:0x007fd91fbcd3b0
- @date="2018-11-15",
- @doctor=#<Doctor:0x007fd92022b478 @name="Dr. James Johnson">,
- @patient=#<Patient:0x007fd91fbcd4f0 @name="Carl Nicholson">>,
- # Our third and final appointment, created using the doctor instance method
- #<Appointment:0x007fd920027398
- @date=#<Doctor:0x007fd920027578 @name="Dr. Alex Weaver">,
- @doctor="2018-11-15",
- @patient=#<Patient:0x007fd92022b428 @name="Kody Clemens">>]
Add Comment
Please, Sign In to add comment