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:, deprecation_warning: nil) ⇒ Term

Returns a new instance of Term.



41
42
43
44
45
# File 'lib/dor/services/ontology.rb', line 41

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

Instance Attribute Details

#deprecation_warningObject (readonly)

Returns the value of attribute deprecation_warning.



47
48
49
# File 'lib/dor/services/ontology.rb', line 47

def deprecation_warning
  @deprecation_warning
end

#labelObject (readonly)

Returns the value of attribute label.



47
48
49
# File 'lib/dor/services/ontology.rb', line 47

def label
  @label
end

#uriObject (readonly)

Returns the value of attribute uri.



47
48
49
# File 'lib/dor/services/ontology.rb', line 47

def uri
  @uri
end