struct Laspatule::Models::Recipe
- Laspatule::Models::Recipe
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
laspatule/models/recipe.crConstructors
- .new(id : Int32, title : String, user : User, ingredients : Array(Laspatule::Models::Recipe::Ingredient) = Array(Laspatule::Models::Recipe::Ingredient).new, sections : Array(Laspatule::Models::Recipe::Section) = Array(Laspatule::Models::Recipe::Section).new)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #clone
- #copy_with(id _id = @id, title _title = @title, user _user = @user, ingredients _ingredients = @ingredients, sections _sections = @sections)
- #id : Int32
- #ingredients : Array(Laspatule::Models::Recipe::Ingredient)
- #sections : Array(Laspatule::Models::Recipe::Section)
- #title : String
- #user : User
Constructor Detail
def self.new(id : Int32, title : String, user : User, ingredients : Array(Laspatule::Models::Recipe::Ingredient) = Array(Laspatule::Models::Recipe::Ingredient).new, sections : Array(Laspatule::Models::Recipe::Section) = Array(Laspatule::Models::Recipe::Section).new)
#
Instance Method Detail
def copy_with(id _id = @id, title _title = @title, user _user = @user, ingredients _ingredients = @ingredients, sections _sections = @sections)
#