-
Notifications
You must be signed in to change notification settings - Fork 4
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
slurp! mechanism #1
base: master
Are you sure you want to change the base?
Conversation
1.At yesterday's OpenRuby talk, |
Great to see the feature is appreciated! |
DOC: Previously, only the first worksheet in the spreadsheet would be input. Now with Slurp, each worksheet is output as a class object. |
…both that Sheet2 and the old bicycles sheet renamed as Sheet1. -Issue tracedwax#1
1.Oh, gosh! I forgot github would auto-link! This commit is not ready for viewing! |
@jayjlawrence , I got doing other things, but it seems I probably should put this on a VM since there are so many dependencies. Can you quickly tell me what you mean when you say classes are created for each tab? I'm not finding the code clear. Where does the class that is generated output? How do you use it? Is that code pushed up here in this commit or am I missing something? Thank you! |
You might find my slurp! method handy - see README.md for example of how it will automatically slurp a spreadsheet by using the sheet names to find the model class. If it can't find it then it will warn and move on to the next.
I added a couple of options that should be non-invasive to import! ... :delete and :sheet. You may want to have import! look for a sheet name based on the model class or table name ... or just leave with selecting the first sheet of the workbook.
Thanks!