Class: Boolminot::Clauses::Negation

Inherits:
Logica::Predicates::Negation
  • Object
show all
Extended by:
Base::ClassMethods
Includes:
Base::InstanceMethods
Defined in:
lib/boolminot/clauses/negation.rb

Instance Method Summary collapse

Methods included from Base::ClassMethods

predicate_factory

Methods included from Base::InstanceMethods

#satisfied_by?, #to_elasticsearch_negated

Instance Method Details

#clauseObject



15
16
17
# File 'lib/boolminot/clauses/negation.rb', line 15

def clause
  predicate
end

#to_elasticsearch(options = {}) ⇒ Object



7
8
9
# File 'lib/boolminot/clauses/negation.rb', line 7

def to_elasticsearch(options = {})
  clause.to_elasticsearch_negated(options)
end

#to_raw_bool(options = {}) ⇒ Object



11
12
13
# File 'lib/boolminot/clauses/negation.rb', line 11

def to_raw_bool(options = {})
  to_elasticsearch(options)
end