Class: Inttegro::PurchaseIntent::Page
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::Page
- Defined in:
- lib/inttegro/purchase_intent/page.rb
Overview
Typed representation of the page 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
-
#number ⇒ Integer
readonly
One-based page number returned.
-
#purchase_intents ⇒ Array<Inttegro::PurchaseIntent>
readonly
Value of the
purchase_intentsfield in the Inttegro API payload. -
#size ⇒ Integer
readonly
Number of purchase intents actually returned.
Instance Attribute Details
#number ⇒ Integer (readonly)
One-based page number returned
Required in the API payload. Wire name: number.
36 37 38 39 40 |
# File 'lib/inttegro/purchase_intent/page.rb', line 36 class Page < T::Struct const :number, Integer const :purchase_intents, T::Array[Inttegro::PurchaseIntent] const :size, Integer end |
#purchase_intents ⇒ Array<Inttegro::PurchaseIntent> (readonly)
Value of the purchase_intents field in the Inttegro API payload.
Required in the API payload. Wire name: purchase_intents.
36 37 38 39 40 |
# File 'lib/inttegro/purchase_intent/page.rb', line 36 class Page < T::Struct const :number, Integer const :purchase_intents, T::Array[Inttegro::PurchaseIntent] const :size, Integer end |
#size ⇒ Integer (readonly)
Number of purchase intents actually returned
Required in the API payload. Wire name: size.
36 37 38 39 40 |
# File 'lib/inttegro/purchase_intent/page.rb', line 36 class Page < T::Struct const :number, Integer const :purchase_intents, T::Array[Inttegro::PurchaseIntent] const :size, Integer end |