Sha256: 742d81931ace92fd31857dfeeea2644bec6630d1a789f79c1af3ccd9f8750789

Contents?: true

Size: 1.19 KB

Versions: 4

Compression:

Stored size: 1.19 KB

Contents

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

        # @return [URI,String,Boolean,nil]
        define_property :accepts_reservations, as: "acceptsReservations", types: [
          "URI",
          "string",
          "bool",
          "null",
        ]

        # @return [OpenActive::Models::Schema::Rating]
        define_property :star_rating, as: "starRating", types: [
          "OpenActive::Models::Schema::Rating",
        ]

        # @return [URI,String,OpenActive::Models::Schema::Menu]
        define_property :menu, as: "menu", types: [
          "URI",
          "string",
          "OpenActive::Models::Schema::Menu",
        ]

        # @return [URI,OpenActive::Models::Schema::Menu,String]
        define_property :has_menu, as: "hasMenu", types: [
          "URI",
          "OpenActive::Models::Schema::Menu",
          "string",
        ]

        # @return [String]
        define_property :serves_cuisine, as: "servesCuisine", types: [
          "string",
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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