struct Laspatule::Models::CreateRecipe::CreateIngredient

Included Modules

Defined in:

laspatule/models/create_recipe_ingredient.cr

Constructors

Instance Method Summary

Instance methods inherited from module Laspatule::Models::Validation::Validate

validate : Hash(String | UInt8, ValidationError) validate

Constructor Detail

def self.new(quantity : String, ingredient_id : Int32) #

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

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(quantity _quantity = @quantity, ingredient_id _ingredient_id = @ingredient_id) #

[View source]
def ingredient_id : Int32 #

def quantity : String #