Class: CocinaDisplay::DisplayData::DescriptiveValue
- Inherits:
-
Data
- Object
- Data
- CocinaDisplay::DisplayData::DescriptiveValue
- Defined in:
- lib/cocina_display/display_data.rb
Overview
Wrapper to make Cocina descriptive values respond to #to_s and #label.
Instance Attribute Summary collapse
-
#label ⇒ String
readonly
The current value of label.
-
#value ⇒ String
readonly
The current value of value.
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ String (readonly)
Returns the current value of label.
66 67 68 |
# File 'lib/cocina_display/display_data.rb', line 66 def label @label end |
#value ⇒ String (readonly)
Returns the current value of value.
66 67 68 |
# File 'lib/cocina_display/display_data.rb', line 66 def value @value end |
Instance Method Details
#to_s ⇒ Object
67 68 69 |
# File 'lib/cocina_display/display_data.rb', line 67 def to_s value end |