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.



11919
11920
11921
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11919

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


11917
11918
11919
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11917

def integer_buckets
  @integer_buckets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11924
11925
11926
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11924

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