Class: Inttegro::Search::ResourceTotal
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Search::ResourceTotal
- Defined in:
- lib/inttegro/search/resource_total.rb
Overview
Typed representation of the resource 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::ResourceTotalRelation
readonly
Value of the
relationfield in the Inttegro API payload. -
#resource_type ⇒ Inttegro::Search::Type
readonly
Value of the
resource_typefield in the Inttegro API payload. -
#value ⇒ Integer
readonly
Value of the
valuefield in the Inttegro API payload.
Instance Attribute Details
#relation ⇒ Inttegro::Search::ResourceTotalRelation (readonly)
Value of the relation field in the Inttegro API payload.
Required in the API payload. Wire name: relation.
37 38 39 40 41 |
# File 'lib/inttegro/search/resource_total.rb', line 37 class ResourceTotal < T::Struct const :resource_type, Inttegro::Search::Type const :value, Integer const :relation, Inttegro::Search::ResourceTotalRelation end |
#resource_type ⇒ Inttegro::Search::Type (readonly)
Value of the resource_type field in the Inttegro API payload.
Required in the API payload. Wire name: resource_type.
37 38 39 40 41 |
# File 'lib/inttegro/search/resource_total.rb', line 37 class ResourceTotal < T::Struct const :resource_type, Inttegro::Search::Type const :value, Integer const :relation, Inttegro::Search::ResourceTotalRelation end |
#value ⇒ Integer (readonly)
Value of the value field in the Inttegro API payload.
Required in the API payload. Wire name: value.
37 38 39 40 41 |
# File 'lib/inttegro/search/resource_total.rb', line 37 class ResourceTotal < T::Struct const :resource_type, Inttegro::Search::Type const :value, Integer const :relation, Inttegro::Search::ResourceTotalRelation end |