class Laspatule::Repositories::DB::Recipes
- Laspatule::Repositories::DB::Recipes
- Reference
- Object
Included Modules
Defined in:
laspatule/repositories/db/recipes.crConstructors
Instance Method Summary
-
#create(recipe : Models::CreateRecipe, user_id : Int32) : Int32
Creates a new recipe and returns its id.
-
#get_all(page_size : Int32, next_page previous_page : String | Nil = nil) : Models::Page(Models::Recipe)
Gets all recipes ordered by name,
-
#get_by_id(id : Int32) : Models::Recipe
Gets a recipe by id.
Instance methods inherited from module Laspatule::Repositories::Recipes
create(recipe : Models::CreateRecipe, user_id : Int32) : Int32
create,
get_all(page_size : Int32, next_page previous_page : String | Nil = nil) : Models::Page(Models::Recipe)
get_all,
get_by_id(id : Int32) : Models::Recipe
get_by_id
Constructor Detail
Instance Method Detail
def create(recipe : Models::CreateRecipe, user_id : Int32) : Int32
#
Description copied from module Laspatule::Repositories::Recipes
Creates a new recipe and returns its id.
def get_all(page_size : Int32, next_page previous_page : String | Nil = nil) : Models::Page(Models::Recipe)
#
Description copied from module Laspatule::Repositories::Recipes
Gets all recipes ordered by name,
This is a paginated query, see Models::Page
for the pagination instructions.
def get_by_id(id : Int32) : Models::Recipe
#
Description copied from module Laspatule::Repositories::Recipes
Gets a recipe by id.