class

Laspatule::Services::Recipes

Inherits Reference < Object

Constructors

new(user_id : Int32, repository : Repositories::Recipes)
Source

Instance methods

create(recipe : Models::CreateRecipe) : Models::Recipe

Creates a new recipe and returns its id.

Source
get_all(page_size : Int32, next_page previous_page : Int32 | Nil = nil) : Models::Page(Models::Recipe)

Gets all recipes ordered by name.

Source
get_by_id(id : Int32) : Models::Recipe

Gets a recipe by id.

Source