Ruby Build an Address Book in Ruby Input and Output Searching the Address Book

The `find_by` methods were not all called.

The find_by methods were not all called.

address_book.rb
class AddressBook

  def search(name)
    @name=name
  end
end

address_book = AddressBook.new
address_book.find_by_name("jhon")
address_book.find_by_address("Italy")
address_book.find_by_phone_number(5565)

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 51,734 Points

For task 2 you are to call the find_by methods in the search method. Pass the name parameter that you created.