Class: PgSearch::Features::Feature
- Inherits:
-
Object
- Object
- PgSearch::Features::Feature
- Defined in:
- lib/pg_search/features/feature.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(query, options, all_columns, model, normalizer) ⇒ Feature
constructor
A new instance of Feature.
Constructor Details
#initialize(query, options, all_columns, model, normalizer) ⇒ Feature
Returns a new instance of Feature.
12 13 14 15 16 17 18 |
# File 'lib/pg_search/features/feature.rb', line 12 def initialize(query, , all_columns, model, normalizer) @query = query = ( || {}).assert_valid_keys(self.class.) @all_columns = all_columns @model = model @normalizer = normalizer end |
Class Method Details
.valid_options ⇒ Object
8 9 10 |
# File 'lib/pg_search/features/feature.rb', line 8 def self. i[only sort_only] end |