Class: QueryFilter::Rules::SplitterRange
- Defined in:
- lib/query_filter/rules/splitter_range.rb
Defined Under Namespace
Classes: RangeParam
Constant Summary
Constants inherited from Scope
QueryFilter::Rules::Scope::VALIDATON_KEYS
Instance Attribute Summary
Attributes inherited from Scope
Instance Method Summary collapse
Methods inherited from Scope
#blank_validation?, #can_apply?, #endpoint, #initialize, #key
Constructor Details
This class inherits a constructor from QueryFilter::Rules::Scope
Instance Method Details
#name ⇒ Object
26 27 28 |
# File 'lib/query_filter/rules/splitter_range.rb', line 26 def name 'splitter_range' end |
#normalize_params(values) ⇒ Object
35 36 37 |
# File 'lib/query_filter/rules/splitter_range.rb', line 35 def normalize_params(values) build_period_from_params(values) end |
#valid?(values) ⇒ Boolean
30 31 32 33 |
# File 'lib/query_filter/rules/splitter_range.rb', line 30 def valid?(values) period = build_period_from_params(values) !period.nil? end |