Class: CocinaDisplay::DisplayData::DescriptiveValue

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#labelString (readonly)

Returns the current value of label.

Returns:

  • (String)

    the current value of label



66
67
68
# File 'lib/cocina_display/display_data.rb', line 66

def label
  @label
end

#valueString (readonly)

Returns the current value of value.

Returns:

  • (String)

    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_sObject



67
68
69
# File 'lib/cocina_display/display_data.rb', line 67

def to_s
  value
end