Class: Sunspot::DSL::Restriction
- Inherits:
 - 
      Object
      
        
- Object
 - Sunspot::DSL::Restriction
 
 - Defined in:
 - sunspot/lib/sunspot/dsl/restriction.rb
 
Overview
This class presents an API for building restrictions in the query DSL. The methods exposed are the snake-cased names of the classes defined in the Sunspot::Restriction module, with the exception of Base. All methods take a single argument, which is the value to be applied to the restriction.
Direct Known Subclasses
Instance Method Summary (collapse)
- 
  
    
      - (Restriction) initialize(field, scope, negative) 
    
    
  
  
    constructor
  
  
  
  
  
  
  
    
:nodoc:.
 
Constructor Details
- (Restriction) initialize(field, scope, negative)
:nodoc:
      11 12 13  | 
    
      # File 'sunspot/lib/sunspot/dsl/restriction.rb', line 11 def initialize(field, scope, negative) #:nodoc: @field, @scope, @negative = field, scope, negative end  |