Class: Google::Apis::CloudsearchV1::IntegerFacetingOptions

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

Used to specify integer faceting options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IntegerFacetingOptions

Returns a new instance of IntegerFacetingOptions.



11842
11843
11844
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11842

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

Instance Attribute Details

#integer_bucketsArray<Fixnum>

Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed <1, [1,5), [5-10), [10-100), >=100. Corresponds to the JSON property integerBuckets

Returns:

  • (Array<Fixnum>)


11840
11841
11842
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11840

def integer_buckets
  @integer_buckets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11847
11848
11849
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11847

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