lib/linsc/parsers.rb in linsc-0.0.12 vs lib/linsc/parsers.rb in linsc-0.0.13
- old
+ new
@@ -2,10 +2,11 @@
def scrape_contact(input_row, page, mode)
row = CSV::Row.new(@headers, [])
name = page.at_css("#name").text.split
contact_id = input_row["Contact ID"]
lin_id = input_row["LIN ID"]
+ account_id = input_row["Account ID"]
cv_tr = input_row["CV TR"]
acc_name = input_row["Account Name"]
import_status = input_row["Linkedin Import Status"]
email = input_row["Email"]
lin_profile = input_row["Linkedin Profile"]
@@ -225,9 +226,10 @@
end
row["Contact ID"] = contact_id
row["LIN ID"] = lin_id
+ row["Account ID"] = account_id
row["CV TR"] = "1"
row["Account Name"] = acc_name
row["Linkedin Import Status"] = import_status
row["First Name"] = name[0].slice(0, 39)
row["Last Name"] = name[1..-1].join(" ").slice(0, 79)