A Treehouse project, using Ruby to create a command-line address book program
In this project, which wraps up the Classes and Blocks portion of Treehouse's Ruby track, we were tasked with using OOP principles in Ruby to develop a basic address book. This is the first project I completed with Ruby using Class structures.
TO RUN: Download and execute the file in Terminal by entering ruby address_book.rb
.
Classes:
AddressBook: Main class for the address book program. Runs the UI program.
Contact: Class for contact records, containing name/address/phone number variables.
Address: Class for addresses, containing an array of multiple types of addresses.
PhoneNumber: Class for phone numbers, containing an array of multiple types of phone numbers.
Provided files: None
Project duration: About 4 hours
As always, please feel free to create a pull request if you have suggestions on cleaner or more efficient code! :)