Last active
November 15, 2018 19:19
-
-
Save kodyclemens/58ea2e1ba9ed218bc9495e3be277fa1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Doctor | |
attr_accessor :name | |
def initialize(name) | |
@name = name | |
@@all << self | |
end | |
def new_appointment(patient, date) | |
# given a date and a patient, creates a new appointment | |
Appointment.new(date, patient, self) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment