Skip to content

Instantly share code, notes, and snippets.

@jorgecasariego
Last active February 27, 2020 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgecasariego/216b8b060cb47afe992db889f2741f2f to your computer and use it in GitHub Desktop.
Save jorgecasariego/216b8b060cb47afe992db889f2741f2f to your computer and use it in GitHub Desktop.
class Yerba (val name: String, val brand: String, val db: Database){
fun saveYerbaToDb(yerba: Yerba) {
db.save(yerba)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment