Class: Valkyrie::Persistence::Solr::ModelConverter::NilPropertyValue
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Solr::ModelConverter::NilPropertyValue
- Defined in:
- lib/valkyrie/persistence/solr/model_converter.rb
Overview
Skips nil values.
Instance Attribute Summary
Attributes inherited from ValueMapper
Class Method Summary collapse
-
.handles?(value) ⇒ Boolean
Determines whether or not a Property value responds as nil.
Instance Method Summary collapse
-
#result ⇒ SolrRow
Constructs a SolrRow object for a Property with a nil 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 a Property value responds as nil
277 278 279 |
# File 'lib/valkyrie/persistence/solr/model_converter.rb', line 277 def self.handles?(value) value.is_a?(Property) && value.value.nil? end |