lib/openactive/models/schema/recipe.rb in openactive-0.1.2 vs lib/openactive/models/schema/recipe.rb in openactive-0.2.0

- old
+ new

@@ -7,60 +7,64 @@ def type "schema:Recipe" end # @return [String] - define_property :ingredients, as: "ingredients", types: [ + define_property :cooking_method, as: "cookingMethod", types: [ "string", ] # @return [String] - define_property :cooking_method, as: "cookingMethod", types: [ + define_property :recipe_cuisine, as: "recipeCuisine", types: [ "string", ] - # @return [ActiveSupport::Duration,nil] - define_property :cook_time, as: "cookTime", types: [ - "DateInterval", - "null", + # @return [String] + define_property :recipe_ingredient, as: "recipeIngredient", types: [ + "string", ] - # @return [String] - define_property :recipe_cuisine, as: "recipeCuisine", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,String,URI] + define_property :recipe_yield, as: "recipeYield", types: [ + "OpenActive::Models::Schema::QuantitativeValue", "string", + "URI", ] # @return [OpenActive::Enums::Schema::RestrictedDiet,nil] define_property :suitable_for_diet, as: "suitableForDiet", types: [ "OpenActive::Enums::Schema::RestrictedDiet", "null", ] - # @return [OpenActive::Models::Schema::NutritionInformation] - define_property :nutrition, as: "nutrition", types: [ - "OpenActive::Models::Schema::NutritionInformation", + # @return [ActiveSupport::Duration,URI,nil] + define_property :cook_time, as: "cookTime", types: [ + "DateInterval", + "URI", + "null", ] - # @return [OpenActive::Models::Schema::CreativeWork,String,OpenActive::Models::Schema::ItemList] - define_property :recipe_instructions, as: "recipeInstructions", types: [ - "OpenActive::Models::Schema::CreativeWork", + # @return [String] + define_property :recipe_category, as: "recipeCategory", types: [ "string", - "OpenActive::Models::Schema::ItemList", ] - # @return [String] - define_property :recipe_ingredient, as: "recipeIngredient", types: [ + # @return [OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::CreativeWork,String,URI] + define_property :recipe_instructions, as: "recipeInstructions", types: [ + "OpenActive::Models::Schema::ItemList", + "OpenActive::Models::Schema::CreativeWork", "string", + "URI", ] - # @return [String] - define_property :recipe_category, as: "recipeCategory", types: [ - "string", + # @return [OpenActive::Models::Schema::NutritionInformation,URI] + define_property :nutrition, as: "nutrition", types: [ + "OpenActive::Models::Schema::NutritionInformation", + "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,String] - define_property :recipe_yield, as: "recipeYield", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [String] + define_property :ingredients, as: "ingredients", types: [ "string", ] end end end