Laspatule::Services::Recipes
Inherits Reference < Object
Constructors
new(user_id : Int32, repository : Repositories::Recipes)
SourceInstance methods
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.