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.



3951
3952
3953
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3951

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>)


3949
3950
3951
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3949

def integer_buckets
  @integer_buckets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3956
3957
3958
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3956

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