Sha256: 8d91153259f5c46b245a11e0e9e58f21a43035e0223ef23d3b4b0d716f7d9026

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

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

        # @return [URI,OpenActive::Models::Schema::Taxon,String]
        define_property :parent_taxon, as: "parentTaxon", types: [
          "URI",
          "OpenActive::Models::Schema::Taxon",
          "string",
        ]

        # @return [OpenActive::Models::Schema::PropertyValue,URI,String]
        define_property :taxon_rank, as: "taxonRank", types: [
          "OpenActive::Models::Schema::PropertyValue",
          "URI",
          "string",
        ]

        # @return [String,OpenActive::Models::Schema::Taxon,URI]
        define_property :child_taxon, as: "childTaxon", types: [
          "string",
          "OpenActive::Models::Schema::Taxon",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::DefinedTerm,URI]
        define_property :has_defined_term, as: "hasDefinedTerm", types: [
          "OpenActive::Models::Schema::DefinedTerm",
          "URI",
        ]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openactive-0.3.0 lib/openactive/models/schema/taxon.rb