Class: OpenActive::Models::Concept

Inherits:
JsonLdModel show all
Defined in:
lib/openactive/models/concept.rb

Overview

This type is derived from [Concept](www.w3.org/2004/02/skos/core#Concept), which means that any of this type’s properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.

Instance Attribute Summary collapse

Attributes inherited from JsonLdModel

#context, #id

Method Summary

Methods inherited from BaseModel

#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json

Methods included from Concerns::TypeChecker

#check_types, included

Methods included from Concerns::JsonLdSerializable

included, #to_h, #values

Constructor Details

This class inherits a constructor from OpenActive::BaseModel

Instance Attribute Details

#alt_labelArray<String>

Returns:

  • (Array<String>)


12
13
14
# File 'lib/openactive/models/concept.rb', line 12

def alt_label
  @alt_label
end

#broaderArray<URI>

Returns:

  • (Array<URI>)


17
18
19
# File 'lib/openactive/models/concept.rb', line 17

def broader
  @broader
end

#in_schemeURI

Returns:

  • (URI)


22
23
24
# File 'lib/openactive/models/concept.rb', line 22

def in_scheme
  @in_scheme
end

#narrowerArray<URI>

Returns:

  • (Array<URI>)


27
28
29
# File 'lib/openactive/models/concept.rb', line 27

def narrower
  @narrower
end

#notationString

Returns:

  • (String)


32
33
34
# File 'lib/openactive/models/concept.rb', line 32

def notation
  @notation
end

#pref_labelString

Returns:

  • (String)


37
38
39
# File 'lib/openactive/models/concept.rb', line 37

def pref_label
  @pref_label
end

#typeString

Returns:

  • (String)


7
8
9
# File 'lib/openactive/models/concept.rb', line 7

def type
  "Concept"
end