class Laspatule::Services::Ingredients
- Laspatule::Services::Ingredients
- Reference
- Object
Defined in:
laspatule/services/ingredients.crConstructors
Instance Method Summary
-
#create(ingredient : Models::CreateIngredient) : Models::Ingredient
Creates a new ingredient and returns its.
-
#get_by_id(id : Int32) : Models::Ingredient
Gets an ingredient by id.
-
#search_by_name(name : String, page_size : Int32, next_page : String | Nil) : Models::Page(Models::Ingredient)
Search ingredients by name.
Constructor Detail
Instance Method Detail
Creates a new ingredient and returns its.
def search_by_name(name : String, page_size : Int32, next_page : String | Nil) : Models::Page(Models::Ingredient)
#
Search ingredients by name.
See Models::Page
documentation about pagination.