Sha256: 74b6b2b3943439dafe21b40c1d08188905bec8d1ac0ff6a418dda6117ce6dd9a

Contents?: true

Size: 1.13 KB

Versions: 2

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 [OpenActive::Models::Schema::DefinedTerm,URI]
        define_property :has_defined_term, as: "hasDefinedTerm", types: [
          "OpenActive::Models::Schema::DefinedTerm",
          "URI",
        ]

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

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