Class: Inttegro::Search::FacetBucket

Inherits:
T::Struct
  • Object
show all
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

Instance Attribute Details

#count ⇒ Integer (readonly)

Value of the count field in the Inttegro API payload.

Required in the API payload. Wire name: count.

Returns:

  • (Integer)


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.

Returns:

  • (String)


29
30
31
32
# File 'lib/inttegro/search/facet_bucket.rb', line 29

class FacetBucket < T::Struct
  const :value, String
  const :count, Integer
end