struct

Laspatule::Models::Recipe

Inherits JSON::Serializable < Struct < Value < Object

Constructors

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)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
copy_with(id _id = @id, title _title = @title, user _user = @user, ingredients _ingredients = @ingredients, sections _sections = @sections)
Source
id
ingredients
sections
title
user

Nested types