Last active
September 14, 2018 16:33
-
-
Save roadev/2fbeca548f47771767bc94a465128458 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CSV.open("file.csv", "wb") do |csv| | |
csv << ["Name", "Phone"] | |
people = Person.by_role("assistant").by_gender("f").by_days("vs") | |
people.each do |p| | |
p.phone[5..9] = "xxxxx" | |
csv << [p.name, p.phone] | |
end | |
people = Person.by_role("assistant").by_gender("f").by_days("s") | |
people.each do |p| | |
csv << [p.name, p.phone] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment