Class: ModsDisplay::Values
- Inherits:
-
Object
- Object
- ModsDisplay::Values
- Defined in:
- lib/mods_display/fields/values.rb
Overview
This class has what is needed by view code in downstream applications
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#label ⇒ Object
Returns the value of attribute label.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(label: nil, values: [], field: nil) ⇒ Values
constructor
A new instance of Values.
Constructor Details
#initialize(label: nil, values: [], field: nil) ⇒ Values
Returns a new instance of Values.
8 9 10 11 12 |
# File 'lib/mods_display/fields/values.rb', line 8 def initialize(label: nil, values: [], field: nil) @label = label @values = values @field = field end |
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field.
6 7 8 |
# File 'lib/mods_display/fields/values.rb', line 6 def field @field end |
#label ⇒ Object
Returns the value of attribute label.
6 7 8 |
# File 'lib/mods_display/fields/values.rb', line 6 def label @label end |
#values ⇒ Object
Returns the value of attribute values.
6 7 8 |
# File 'lib/mods_display/fields/values.rb', line 6 def values @values end |