Class: Dor::Ontology::Term
- Inherits:
-
Object
- Object
- Dor::Ontology::Term
- Defined in:
- lib/dor/services/ontology.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri:, human_readable:) ⇒ Term
constructor
A new instance of Term.
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
#label ⇒ Object (readonly)
Returns the value of attribute label.
32 33 34 |
# File 'lib/dor/services/ontology.rb', line 32 def label @label end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
32 33 34 |
# File 'lib/dor/services/ontology.rb', line 32 def uri @uri end |