Class: Valkyrie::Persistence::Solr::ORMConverter::EnumerableValue
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Solr::ORMConverter::EnumerableValue
show all
- Defined in:
- lib/valkyrie/persistence/solr/orm_converter.rb
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
120
121
122
|
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 120
def self.handles?(value)
value.respond_to?(:each)
end
|
Instance Method Details
#result ⇒ Object
124
125
126
127
128
|
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 124
def result
value.map do |element|
calling_mapper.for(element).result
end
end
|