Module: ElasticRecord::Relation::None
- Defined in:
- lib/elastic_record/relation/none.rb
Instance Method Summary collapse
Instance Method Details
#aggregations ⇒ Object
12 13 14 |
# File 'lib/elastic_record/relation/none.rb', line 12 def aggregations {} end |
#as_elastic ⇒ Object
16 17 18 |
# File 'lib/elastic_record/relation/none.rb', line 16 def as_elastic Arelastic::Queries::MatchAll.new.negate.as_elastic end |
#count ⇒ Object
8 9 10 |
# File 'lib/elastic_record/relation/none.rb', line 8 def count 0 end |
#to_a ⇒ Object
4 5 6 |
# File 'lib/elastic_record/relation/none.rb', line 4 def to_a [] end |