Class: Google::Apis::CloudsearchV1::IntegerFacetingOptions
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::IntegerFacetingOptions
- 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
-
#integer_buckets ⇒ Array<Fixnum>
Buckets for given integer values should be in strictly ascending order.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IntegerFacetingOptions
constructor
A new instance of IntegerFacetingOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IntegerFacetingOptions
Returns a new instance of IntegerFacetingOptions.
3918 3919 3920 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3918 def initialize(**args) update!(**args) end |
Instance Attribute Details
#integer_buckets ⇒ Array<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
3916 3917 3918 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3916 def integer_buckets @integer_buckets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3923 3924 3925 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3923 def update!(**args) @integer_buckets = args[:integer_buckets] if args.key?(:integer_buckets) end |