Class: Valkyrie::Persistence::Postgres::ORMConverter::RDFMetadata::EnumeratorValue
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Postgres::ORMConverter::RDFMetadata::EnumeratorValue
- Defined in:
- lib/valkyrie/persistence/postgres/orm_converter.rb
Overview
Handles iterating over arrays of values and converting each value.
Instance Attribute Summary
Attributes inherited from ValueMapper
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ValueMapper
Constructor Details
This class inherits a constructor from Valkyrie::ValueMapper
Class Method Details
.handles?(value) ⇒ Boolean
115 116 117 |
# File 'lib/valkyrie/persistence/postgres/orm_converter.rb', line 115 def self.handles?(value) value.respond_to?(:each) end |
Instance Method Details
#result ⇒ Object
119 120 121 122 123 |
# File 'lib/valkyrie/persistence/postgres/orm_converter.rb', line 119 def result value.map do |value| calling_mapper.for(value).result end end |