Class: Valkyrie::Persistence::Fedora::Persister::ModelConverter::EnumerableValue
Instance Attribute Summary
Attributes inherited from ValueMapper
#calling_mapper, #value
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from ValueMapper
for, #initialize, register
Class Method Details
.handles?(value) ⇒ Boolean
271
272
273
|
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 271
def self.handles?(value)
value.is_a?(Property) && value.value.is_a?(Array)
end
|
Instance Method Details
#result ⇒ Object
275
276
277
278
279
280
|
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 275
def result
new_values = value.value.map do |val|
map_value(converted_value: val)
end
CompositeProperty.new(new_values)
end
|