Class: Chewy::Search::Parameters::IgnoreUnavailable
- Defined in:
- lib/chewy/search/parameters/ignore_unavailable.rb
Overview
Stores boolean value, but has 3 states: true
, false
and nil
.
Instance Attribute Summary
Attributes inherited from Storage
Instance Method Summary collapse
-
#render ⇒ {Symbol => Object}?
We don't want to render
nil
, but rendertrue
andfalse
values.
Methods inherited from Storage
#==, #initialize, #merge!, #replace!, #update!
Constructor Details
This class inherits a constructor from Chewy::Search::Parameters::Storage
Instance Method Details
#render ⇒ {Symbol => Object}?
We don't want to render nil
, but render true
and false
values.
15 16 17 |
# File 'lib/chewy/search/parameters/ignore_unavailable.rb', line 15 def render {self.class.param_name => value} unless value.nil? end |