Class: Appointments
- Inherits:
-
Object
- Object
- Appointments
- Defined in:
- lib/bookMD2.rb
Instance Method Summary collapse
- #add(key_value) ⇒ Object
-
#initialize ⇒ Appointments
constructor
A new instance of Appointments.
- #keywords ⇒ Object
Constructor Details
#initialize ⇒ Appointments
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 |
#keywords ⇒ Object
94 95 96 |
# File 'lib/bookMD2.rb', line 94 def keywords @your_appointments.keywords end |