Class: Druid::RecFilter
- Inherits:
-
FilterDimension
- Object
- FilterParameter
- FilterDimension
- Druid::RecFilter
- Defined in:
- lib/druid/filter.rb
Instance Method Summary collapse
-
#initialize(dimension, bounds) ⇒ RecFilter
constructor
A new instance of RecFilter.
- #to_hash ⇒ Object
Methods inherited from FilterDimension
#!, #&, #<, #<=, #>, #>=, #eq, #in, #in_circ, #in_rec, #javascript, #neq, #regexp, #|
Methods inherited from FilterParameter
Constructor Details
#initialize(dimension, bounds) ⇒ RecFilter
Returns a new instance of RecFilter.
208 209 210 211 |
# File 'lib/druid/filter.rb', line 208 def initialize(dimension, bounds) @dimension = dimension @bounds = bounds end |
Instance Method Details
#to_hash ⇒ Object
213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/druid/filter.rb', line 213 def to_hash { :type => "spatial", :dimension => @dimension, :bound =>{ :type => "rectangular", :minCoords => @bounds.first, :maxCoords => @bounds.last } } end |