Class: Valkyrie::Persistence::Solr::ORMConverter::NestedResourceHash
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Solr::ORMConverter::NestedResourceHash
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
222
223
224
|
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 222
def self.handles?(value)
value.is_a?(Hash)
end
|
Instance Method Details
#result ⇒ Object
226
227
228
229
230
231
232
|
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 226
def result
Hash[
value.map do |k, v|
[k, calling_mapper.for(v).result]
end
]
end
|