Class: Valkyrie::Persistence::Solr::ORMConverter::NestedEnumerable
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Solr::ORMConverter::NestedEnumerable
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
176
177
178
|
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 176
def self.handles?(value)
value.is_a?(Array)
end
|
Instance Method Details
#result ⇒ Object
180
181
182
183
184
|
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 180
def result
value.map do |v|
calling_mapper.for(v).result
end
end
|