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

Returns a new instance of Term.



27
28
29
30
# File 'lib/dor/services/ontology.rb', line 27

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

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



32
33
34
# File 'lib/dor/services/ontology.rb', line 32

def label
  @label
end

#uriObject (readonly)

Returns the value of attribute uri.



32
33
34
# File 'lib/dor/services/ontology.rb', line 32

def uri
  @uri
end