Sha256: d5e625d514b5b40170248447fe854d8f6c39f846f8b37ceeb8aeecf960ee0a0b

Contents?: true

Size: 1.27 KB

Versions: 3

Compression:

Stored size: 1.27 KB

Contents

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

        # @return [OpenActive::Enums::PropertyEnumeration,OpenActive::Models::Schema::Enumeration,OpenActive::Models::Schema::Class,URI,nil]
        define_property :superseded_by, as: "supersededBy", types: [
          "OpenActive::Enums::PropertyEnumeration",
          "OpenActive::Models::Schema::Enumeration",
          "OpenActive::Models::Schema::Class",
          "URI",
          "null",
        ]

        # @return [OpenActive::Models::Schema::Class,URI]
        define_property :range_includes, as: "rangeIncludes", types: [
          "OpenActive::Models::Schema::Class",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::Class,URI]
        define_property :domain_includes, as: "domainIncludes", types: [
          "OpenActive::Models::Schema::Class",
          "URI",
        ]

        # @return [OpenActive::Enums::PropertyEnumeration,URI,nil]
        define_property :inverse_of, as: "inverseOf", types: [
          "OpenActive::Enums::PropertyEnumeration",
          "URI",
          "null",
        ]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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