Class: Valkyrie::Persistence::Solr::ModelConverter::BooleanPropertyValue
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Solr::ModelConverter::BooleanPropertyValue
- Defined in:
- lib/valkyrie/persistence/solr/model_converter.rb
Overview
Casts Boolean values into a recognizable string in Solr.
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
136 137 138 |
# File 'lib/valkyrie/persistence/solr/model_converter.rb', line 136 def self.handles?(value) value.is_a?(Property) && ([true, false].include? value.value) end |