Sha256: d7293a77d25e1cdd2110d311918791531a7d3d6b1f567e9c58d80e55d5d1be7e

Contents?: true

Size: 1.1 KB

Versions: 4

Compression:

Stored size: 1.1 KB

Contents

module OpenActive
  module Models
    module Schema
      class MenuItem < ::OpenActive::Models::Schema::Intangible
        # @!attribute type
        # @return [String]
        def type
          "schema:MenuItem"
        end

        # @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::NutritionInformation]
        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",
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openactive-0.1.2 lib/openactive/models/schema/menu_item.rb
openactive-0.1.1 lib/openactive/models/schema/menu_item.rb
openactive-0.1.0 lib/openactive/models/schema/menu_item.rb
openactive-0.1.0.rc1 lib/openactive/models/schema/menu_item.rb