Last active
November 6, 2019 04:25
-
-
Save atsmith813/dc477a87ffe7763233c6f12df0c2a75d to your computer and use it in GitHub Desktop.
Export birthdays from Google Sheets
This file contains hidden or 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
# Continuing with the birthdays, session, spreadsheet, and ws objects created above... | |
birthdays = [] | |
(1..ws.num_rows).each do |row| | |
name = ws[row, 1] | |
date = Date.parse(ws[row, 2]) | |
birthdays << { name: name, date: date} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment