Skip to content

Conversation

@MelahatMindivanli
Copy link

Finished in 0.002474s, 808.5248 runs/s, 4042.6238 assertions/s.
2 runs, 10 assertions, 1 failures, 0 errors, 0 skips

Finished in 0.002474s, 808.5248 runs/s, 4042.6238 assertions/s.
2 runs, 10 assertions, 1 failures, 0 errors, 0 skips
@MelahatMindivanli MelahatMindivanli changed the title Added files via upload Ödev01-Ruby Mar 9, 2016
address_book.rb Outdated
def initialize(csv_path) #Constructor
@people = []
#print '#'
CSV.foreach(csv_path,{ :col_sep => ';' }) do |row|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

people.csv dosyasinda ayirici olan karakter , ama col_sep'i ; olarak ayarladigin icin suan aslinda row'un ilk elemani yani row[0] CSV dosyasindaki bir satira denk geliyor.
Mesela ilk kayit icin Person'un idsi;

1,Roy Clark,63-(869)318-7773,Barra

bu sekilde ama idsi 1 olmasi gerekiyor. full_name, phone_number ve city attributeleri su an nil cunku dosyayi ;'e gore parse etti CSV.

2 runs, 10 assertions, 0 failures, 0 errors, 0 skips
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants