Sha256: 6701bb5c589da80351275162d5bbf907bcc39005f487179652703f0959b34e5b

Contents?: true

Size: 973 Bytes

Versions: 2

Compression:

Stored size: 973 Bytes

Contents

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

        # @return [OpenActive::Models::Schema::FoodEvent,URI]
        define_property :food_event, as: "foodEvent", types: [
          "OpenActive::Models::Schema::FoodEvent",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::FoodEstablishment,OpenActive::Models::Schema::Place,URI]
        define_property :food_establishment, as: "foodEstablishment", types: [
          "OpenActive::Models::Schema::FoodEstablishment",
          "OpenActive::Models::Schema::Place",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::Recipe,URI]
        define_property :recipe, as: "recipe", types: [
          "OpenActive::Models::Schema::Recipe",
          "URI",
        ]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openactive-0.5.0 lib/openactive/models/schema/cook_action.rb
openactive-0.4.0 lib/openactive/models/schema/cook_action.rb