Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
laspatule
main
AuthHandler
CorsHandler
Laspatule
API
Doc
Ingredients
Recipes
Schemas
Recipe
Ingredient
User
Config
Models
CreateIngredient
CreateRecipe
CreateIngredient
CreateSection
CreateStep
CreateUser
Ingredient
Page
Recipe
Ingredient
Section
Step
User
UserWithPassword
Validation
Error
Validate
ValidationError
Repositories
DB
Config
Ingredients
Migrations
V001
Recipes
RecipeRow
Users
DuplicatedError
Ingredients
DuplicatedIngredientError
IngredientNotFoundError
NotFoundError
Recipes
DuplicatedRecipeError
RecipeNotFoundError
Users
UserNotFoundError
Services
Ingredients
Mail
Mailgun
Config
Recipes
Users
Built with Crystal 1.9.2
2023-10-07 15:25:53 UTC
struct
Laspatule::Models::CreateIngredient
Laspatule::Models::CreateIngredient
Struct
Value
Object
Included Modules
JSON::Serializable
Laspatule::Models::Validation::Validate
Defined in:
laspatule/models/create_ingredient.cr
Constructors
.new
(name : String)
.new
(pull : JSON::PullParser)
Instance Method Summary
#clone
#copy_with
(name _name = @name)
#name
: String
Instance methods inherited from module
Laspatule::Models::Validation::Validate
validate : Hash(String | UInt8, ValidationError)
validate
Constructor Detail
def self.
new
(name : String)
#
[
View source
]
def self.
new
(pull : JSON::PullParser)
#
[
View source
]
Instance Method Detail
def
clone
#
[
View source
]
def
copy_with
(name _name = @name)
#
[
View source
]
def
name
: String
#