Class: Appointments

Inherits:
Object
  • Object
show all
Defined in:
lib/bookMD2.rb

Instance Method Summary collapse

Constructor Details

#initializeAppointments

Returns a new instance of Appointments.



83
84
85
# File 'lib/bookMD2.rb', line 83

def initialize
    @your_appointments = {}
end

Instance Method Details

#add(key_value) ⇒ Object



87
88
89
90
91
92
# File 'lib/bookMD2.rb', line 87

def add(key_value)
    key_value.each do |key, value|
        @your_appointments[key] = value
    end
    self
end

#keywordsObject



94
95
96
# File 'lib/bookMD2.rb', line 94

def keywords
  @your_appointments.keywords
end