Skip to content

Instantly share code, notes, and snippets.

@kodyclemens
Created November 15, 2018 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kodyclemens/1c229fca01f493ab67d52bb07d870c32 to your computer and use it in GitHub Desktop.
Save kodyclemens/1c229fca01f493ab67d52bb07d870c32 to your computer and use it in GitHub Desktop.
class Appointment
attr_accessor :date, :patient, :doctor
@@all = []
def initialize(date, patient, doctor)
@date = date
@patient = patient
@doctor = doctor
@@all << self
end
def self.all
@@all
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment