Class: Valkyrie::Persistence::Solr::ORMConverter::PropertyValue
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Solr::ORMConverter::PropertyValue
- Defined in:
- lib/valkyrie/persistence/solr/orm_converter.rb
Overview
Class for handling general string-serialized values in Solr fields
Instance Attribute Summary
Attributes inherited from ValueMapper
Class Method Summary collapse
-
.handles?(value) ⇒ Boolean
Determines whether or not an Object is a Property.
Instance Method Summary collapse
-
#result ⇒ String
Constructs an EnumerableValue and accesses the String value.
Methods inherited from ValueMapper
Constructor Details
This class inherits a constructor from Valkyrie::ValueMapper
Class Method Details
.handles?(value) ⇒ Boolean
Determines whether or not an Object is a Property
185 186 187 |
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 185 def self.handles?(value) value.is_a?(Property) end |
Instance Method Details
#result ⇒ String
Constructs an EnumerableValue and accesses the String value
191 192 193 |
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 191 def result calling_mapper.for(value.value).result end |