Created
February 4, 2015 22:58
-
-
Save 0xjmp/cfba19b78cd21e1c3cd1 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 DataModeller | |
| # Override this method to specify the key-value exchange that | |
| # should occur from the modeller. | |
| def dataMapper | |
| {} | |
| end | |
| end | |
| # Now create your Override | |
| class CraigslistModel < DataModeller | |
| def dataMapper | |
| { | |
| "my_table_key" : "craigslists_table_key", | |
| "my_other_key" : "craigslists_bullet_spec" | |
| } | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment