class Laspatule::Services::Recipes
- Laspatule::Services::Recipes
- Reference
- Object
Defined in:
laspatule/services/recipes.crConstructors
Instance Method Summary
-
#create(recipe : Models::CreateRecipe) : Models::Recipe
Creates a new recipe and returns its id.
-
#get_all(page_size : Int32, next_page previous_page : Int32 | Nil = nil) : Models::Page(Models::Recipe)
Gets all recipes ordered by name.
-
#get_by_id(id : Int32) : Models::Recipe
Gets a recipe by id.
Constructor Detail
Instance Method Detail
Creates a new recipe and returns its id.
def get_all(page_size : Int32, next_page previous_page : Int32 | Nil = nil) : Models::Page(Models::Recipe)
#
Gets all recipes ordered by name.