Class: Google::Apis::FirestoreV1beta1::CompositeFilter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firestore_v1beta1/classes.rb,
generated/google/apis/firestore_v1beta1/representations.rb,
generated/google/apis/firestore_v1beta1/representations.rb

Overview

A filter that merges multiple other filters using the given operator.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CompositeFilter

Returns a new instance of CompositeFilter.



326
327
328
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 326

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#filtersArray<Google::Apis::FirestoreV1beta1::Filter>

The list of filters to combine. Must contain at least one filter. Corresponds to the JSON property filters



319
320
321
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 319

def filters
  @filters
end

#opString

The operator for combining multiple filters. Corresponds to the JSON property op

Returns:

  • (String)


324
325
326
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 324

def op
  @op
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



331
332
333
334
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 331

def update!(**args)
  @filters = args[:filters] if args.key?(:filters)
  @op = args[:op] if args.key?(:op)
end