module Laspatule::Repositories::Recipes
Direct including types
Defined in:
laspatule/repositories/recipes.crInstance 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 Method Detail
abstract
def create(recipe : Models::CreateRecipe, user_id : Int32) : Int32
#
Creates a new recipe and returns its id.
abstract
def get_all(page_size : Int32, next_page previous_page : String | Nil = nil) : Models::Page(Models::Recipe)
#
Gets all recipes ordered by name,
This is a paginated query, see Models::Page
for the pagination instructions.