Class: Stretchy::Queries::MatchAllQuery

Inherits:
Base
  • Object
show all
Defined in:
lib/stretchy/queries/match_all_query.rb

Instance Method Summary collapse

Methods included from Utils::Validation

#errors, included, #require_one!, #require_only_one!, #valid?, #validate!, #validator

Constructor Details

#initializeMatchAllQuery

Returns a new instance of MatchAllQuery.



7
8
# File 'lib/stretchy/queries/match_all_query.rb', line 7

def initialize
end

Instance Method Details

#to_searchObject



10
11
12
# File 'lib/stretchy/queries/match_all_query.rb', line 10

def to_search
  { match_all: {} }
end