class Contacts
Attributes
birth_date[RW]
favorite_color[RW]
first_name[RW]
gender[RW]
last_name[RW]
Public Class Methods
all()
click to toggle source
# File lib/cyrus-code-challenge/contacts.rb, line 8 def self.all @@all end
new(last_name, first_name, gender, favorite_color, birth_date)
click to toggle source
# File lib/cyrus-code-challenge/contacts.rb, line 12 def initialize(last_name, first_name, gender, favorite_color, birth_date) @last_name = last_name @first_name = first_name @gender = gender @favorite_color = favorite_color @birth_date = Date.strptime(birth_date, '%m/%d/%Y') @@all << self end