Guest User

Untitled

a guest
Nov 16th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. [1] pry(main)> Appointment.all
  2.  
  3. # Our first appointment using the appointment class to create an appointment
  4. => [#<Appointment:0x007fd92022b2e8
  5. @date="2018-11-15",
  6. @doctor=#<Doctor:0x007fd92022b478 @name="Dr. James Johnson">,
  7. @patient=#<Patient:0x007fd92022b428 @name="Kody Clemens">>,
  8.  
  9. # Our second appointment, created using the patient instance method
  10. #<Appointment:0x007fd91fbcd3b0
  11. @date="2018-11-15",
  12. @doctor=#<Doctor:0x007fd92022b478 @name="Dr. James Johnson">,
  13. @patient=#<Patient:0x007fd91fbcd4f0 @name="Carl Nicholson">>,
  14.  
  15. # Our third and final appointment, created using the doctor instance method
  16. #<Appointment:0x007fd920027398
  17. @date=#<Doctor:0x007fd920027578 @name="Dr. Alex Weaver">,
  18. @doctor="2018-11-15",
  19. @patient=#<Patient:0x007fd92022b428 @name="Kody Clemens">>]
Add Comment
Please, Sign In to add comment