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

- old
+ new

@@ -6,29 +6,33 @@ # @return [String] def type "schema:MenuItem" end + # @return [OpenActive::Models::Schema::Offer,OpenActive::Models::Schema::Demand,URI] + define_property :offers, as: "offers", types: [ + "OpenActive::Models::Schema::Offer", + "OpenActive::Models::Schema::Demand", + "URI", + ] + # @return [OpenActive::Enums::Schema::RestrictedDiet,nil] define_property :suitable_for_diet, as: "suitableForDiet", types: [ "OpenActive::Enums::Schema::RestrictedDiet", "null", ] - # @return [OpenActive::Models::Schema::Offer] - define_property :offers, as: "offers", types: [ - "OpenActive::Models::Schema::Offer", + # @return [OpenActive::Models::Schema::MenuItem,OpenActive::Models::Schema::MenuSection,URI] + define_property :menu_add_on, as: "menuAddOn", types: [ + "OpenActive::Models::Schema::MenuItem", + "OpenActive::Models::Schema::MenuSection", + "URI", ] - # @return [OpenActive::Models::Schema::NutritionInformation] + # @return [OpenActive::Models::Schema::NutritionInformation,URI] define_property :nutrition, as: "nutrition", types: [ "OpenActive::Models::Schema::NutritionInformation", - ] - - # @return [OpenActive::Models::Schema::MenuSection,OpenActive::Models::Schema::MenuItem] - define_property :menu_add_on, as: "menuAddOn", types: [ - "OpenActive::Models::Schema::MenuSection", - "OpenActive::Models::Schema::MenuItem", + "URI", ] end end end end