Sha256: f401e8d8e539ae419c9659e440fe5e94d6868af7d70314bcbdf505bc9858fe6d

Contents?: true

Size: 1002 Bytes

Versions: 3

Compression:

Stored size: 1002 Bytes

Contents

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

        # @return [OpenActive::Models::Schema::ProductGroup,OpenActive::Models::Schema::ProductModel,URI]
        define_property :is_variant_of, as: "isVariantOf", types: [
          "OpenActive::Models::Schema::ProductGroup",
          "OpenActive::Models::Schema::ProductModel",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::ProductModel,URI]
        define_property :predecessor_of, as: "predecessorOf", types: [
          "OpenActive::Models::Schema::ProductModel",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::ProductModel,URI]
        define_property :successor_of, as: "successorOf", types: [
          "OpenActive::Models::Schema::ProductModel",
          "URI",
        ]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openactive-0.2.2 lib/openactive/models/schema/product_model.rb
openactive-0.2.1 lib/openactive/models/schema/product_model.rb
openactive-0.2.0 lib/openactive/models/schema/product_model.rb