Class: Inttegro::Search::Total
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Search::Total
- Defined in:
- lib/inttegro/search/total.rb
Overview
Typed representation of the total 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
-
#relation ⇒ Inttegro::Search::TotalRelation
readonly
Value of the
relationfield in the Inttegro API payload. -
#value ⇒ Integer
readonly
Value of the
valuefield in the Inttegro API payload.
Instance Attribute Details
#relation ⇒ Inttegro::Search::TotalRelation (readonly)
Value of the relation field in the Inttegro API payload.
Required in the API payload. Wire name: relation.
30 31 32 33 |
# File 'lib/inttegro/search/total.rb', line 30 class Total < T::Struct const :value, Integer const :relation, Inttegro::Search::TotalRelation end |
#value ⇒ Integer (readonly)
Value of the value field in the Inttegro API payload.
Required in the API payload. Wire name: value.
30 31 32 33 |
# File 'lib/inttegro/search/total.rb', line 30 class Total < T::Struct const :value, Integer const :relation, Inttegro::Search::TotalRelation end |