Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ödev01-Ruby #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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
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