Class: Daedal::Queries::RegexpQuery
- Defined in:
- lib/daedal/queries/regexp_query.rb
Instance Method Summary collapse
Methods inherited from Query
Instance Method Details
#to_hash ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/daedal/queries/regexp_query.rb', line 15 def to_hash result = {regexp: {field => {value: query}}} = result[:regexp][field].merge!() result end |