Class: Inttegro::Search::FacetBucket
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Search::FacetBucket
- Defined in:
- lib/inttegro/search/facet_bucket.rb
Overview
Typed representation of the facet bucket object in the Inttegro API.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#count ⇒ Integer
readonly
Value of the
countfield in the Inttegro API payload. -
#value ⇒ String
readonly
Value of the
valuefield in the Inttegro API payload.
Instance Attribute Details
#count ⇒ Integer (readonly)
Value of the count field in the Inttegro API payload.
Required in the API payload. Wire name: count.
29 30 31 32 |
# File 'lib/inttegro/search/facet_bucket.rb', line 29 class FacetBucket < T::Struct const :value, String const :count, Integer end |
#value ⇒ String (readonly)
Value of the value field in the Inttegro API payload.
Required in the API payload. Wire name: value.
29 30 31 32 |
# File 'lib/inttegro/search/facet_bucket.rb', line 29 class FacetBucket < T::Struct const :value, String const :count, Integer end |