Class: ModsDisplay::Values

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

Instance Method Summary collapse

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

#fieldObject

Returns the value of attribute field.



6
7
8
# File 'lib/mods_display/fields/values.rb', line 6

def field
  @field
end

#labelObject

Returns the value of attribute label.



6
7
8
# File 'lib/mods_display/fields/values.rb', line 6

def label
  @label
end

#valuesObject

Returns the value of attribute values.



6
7
8
# File 'lib/mods_display/fields/values.rb', line 6

def values
  @values
end