Class: Dor::Ontology::Term
- Inherits:
-
Object
- Object
- Dor::Ontology::Term
- Defined in:
- lib/dor/services/ontology.rb
Instance Attribute Summary collapse
-
#deprecation_warning ⇒ Object
readonly
Returns the value of attribute deprecation_warning.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#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:, key:, deprecation_warning: nil) ⇒ Term
constructor
A new instance of Term.
Constructor Details
#initialize(uri:, human_readable:, key:, deprecation_warning: nil) ⇒ Term
Returns a new instance of Term.
41 42 43 44 45 46 |
# File 'lib/dor/services/ontology.rb', line 41 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_warning ⇒ Object (readonly)
Returns the value of attribute deprecation_warning.
48 49 50 |
# File 'lib/dor/services/ontology.rb', line 48 def deprecation_warning @deprecation_warning end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
48 49 50 |
# File 'lib/dor/services/ontology.rb', line 48 def key @key end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
48 49 50 |
# File 'lib/dor/services/ontology.rb', line 48 def label @label end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
48 49 50 |
# File 'lib/dor/services/ontology.rb', line 48 def uri @uri end |