struct Laspatule::Models::Recipe

Included Modules

Defined in:

laspatule/models/recipe.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(id _id = @id, title _title = @title, user _user = @user, ingredients _ingredients = @ingredients, sections _sections = @sections) #

[View source]
def id : Int32 #

def ingredients : Array(Laspatule::Models::Recipe::Ingredient) #

def sections : Array(Laspatule::Models::Recipe::Section) #

def title : String #

def user : User #