Class: Dor::Ontology::Term

Inherits:
Object
  • Object
show all
Defined in:
lib/dor/services/ontology.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri:, human_readable:, key:, deprecation_warning: nil) ⇒ Term

Returns a new instance of Term.



23
24
25
26
27
28
# File 'lib/dor/services/ontology.rb', line 23

def initialize(uri:, human_readable:, key:, deprecation_warning: nil)
  @label = human_readable
  @uri = uri
  @deprecation_warning = deprecation_warning
  @key = key
end

Instance Attribute Details

#deprecation_warningObject (readonly)

Returns the value of attribute deprecation_warning.



30
31
32
# File 'lib/dor/services/ontology.rb', line 30

def deprecation_warning
  @deprecation_warning
end

#keyObject (readonly)

Returns the value of attribute key.



30
31
32
# File 'lib/dor/services/ontology.rb', line 30

def key
  @key
end

#labelObject (readonly)

Returns the value of attribute label.



30
31
32
# File 'lib/dor/services/ontology.rb', line 30

def label
  @label
end

#uriObject (readonly)

Returns the value of attribute uri.



30
31
32
# File 'lib/dor/services/ontology.rb', line 30

def uri
  @uri
end