Sha256: 18950e73126b7456d7ad6e29304510c6f3fcf1b98fd98a7ab3602db88f2a3307

Contents?: true

Size: 1.37 KB

Versions: 6

Compression:

Stored size: 1.37 KB

Contents

module OpenActive
  module Models
    # This type is derived from http://www.w3.org/2004/02/skos/core#Concept.
    class Concept < ::OpenActive::JsonLdModel
      # @!attribute type
      # @return [String]
      def type
        "Concept"
      end

      # @return [Array<String>]
      define_property :alt_label, as: "altLabel", types: [
        "string[]",
      ]

      # @return [Array<URI>]
      define_property :broader, as: "broader", types: [
        "URI[]",
      ]

      # @return [String]
      define_property :definition, as: "definition", types: [
        "string",
      ]

      # @return [Array<String>]
      define_property :hidden_label, as: "hiddenLabel", types: [
        "string[]",
      ]

      # @return [URI]
      define_property :in_scheme, as: "inScheme", types: [
        "URI",
      ]

      # @return [Array<URI>]
      define_property :narrower, as: "narrower", types: [
        "URI[]",
      ]

      # @return [String]
      define_property :notation, as: "notation", types: [
        "string",
      ]

      # @return [String]
      define_property :pref_label, as: "prefLabel", types: [
        "string",
      ]

      # @return [Array<URI>]
      define_property :related, as: "related", types: [
        "URI[]",
      ]

      # @return [URI]
      define_property :top_concept_of, as: "topConceptOf", types: [
        "URI",
      ]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openactive-0.5.0 lib/openactive/models/concept.rb
openactive-0.4.0 lib/openactive/models/concept.rb
openactive-0.3.0 lib/openactive/models/concept.rb
openactive-0.2.2 lib/openactive/models/concept.rb
openactive-0.2.1 lib/openactive/models/concept.rb
openactive-0.2.0 lib/openactive/models/concept.rb