struct Laspatule::Models::CreateRecipe
- Laspatule::Models::CreateRecipe
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Laspatule::Models::Validation::Validate
Defined in:
laspatule/models/create_recipe.crConstructors
- .new(title : String, ingredients : Array(CreateRecipe::CreateIngredient), sections : Array(CreateSection))
- .new(pull : JSON::PullParser)
Instance Method Summary
- #clone
- #copy_with(title _title = @title, ingredients _ingredients = @ingredients, sections _sections = @sections)
- #ingredients : Array(CreateRecipe::CreateIngredient)
- #sections : Array(CreateSection)
- #title : String
Instance methods inherited from module Laspatule::Models::Validation::Validate
validate : Hash(String | UInt8, ValidationError)
validate
Constructor Detail
def self.new(title : String, ingredients : Array(CreateRecipe::CreateIngredient), sections : Array(CreateSection))
#
Instance Method Detail
def copy_with(title _title = @title, ingredients _ingredients = @ingredients, sections _sections = @sections)
#