Skip to content

Instantly share code, notes, and snippets.

@0xjmp
Created February 4, 2015 22:58
Show Gist options
  • Select an option

  • Save 0xjmp/cfba19b78cd21e1c3cd1 to your computer and use it in GitHub Desktop.

Select an option

Save 0xjmp/cfba19b78cd21e1c3cd1 to your computer and use it in GitHub Desktop.
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