Created
February 4, 2015 23:05
-
-
Save 0xjmp/faf6fe208da69f777b1f to your computer and use it in GitHub Desktop.
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
| class DataModelFactory | |
| def getModeller(slug) | |
| case slug | |
| when 'amazon' | |
| AmazonModel | |
| when 'craigslist' | |
| CraigslistModel | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment