Class: Inttegro::Price::Page
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Price::Page
- Defined in:
- lib/inttegro/price/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
The page number returned.
-
#prices ⇒ Array<Inttegro::Price::PageItem>?
readonly
Value of the
pricesfield in the Inttegro API payload. -
#size ⇒ Integer?
readonly
The number of prices in this page.
Instance Attribute Details
#number ⇒ Integer? (readonly)
The page number returned
Optional in the API payload; omitted values default to nil. Wire name: number.
36 37 38 39 40 |
# File 'lib/inttegro/price/page.rb', line 36 class Page < T::Struct const :number, T.nilable(Integer), default: nil const :size, T.nilable(Integer), default: nil const :prices, T.nilable(T::Array[Inttegro::Price::PageItem]), default: nil end |
#prices ⇒ Array<Inttegro::Price::PageItem>? (readonly)
Value of the prices field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: prices.
36 37 38 39 40 |
# File 'lib/inttegro/price/page.rb', line 36 class Page < T::Struct const :number, T.nilable(Integer), default: nil const :size, T.nilable(Integer), default: nil const :prices, T.nilable(T::Array[Inttegro::Price::PageItem]), default: nil end |
#size ⇒ Integer? (readonly)
The number of prices in this page
Optional in the API payload; omitted values default to nil. Wire name: size.
36 37 38 39 40 |
# File 'lib/inttegro/price/page.rb', line 36 class Page < T::Struct const :number, T.nilable(Integer), default: nil const :size, T.nilable(Integer), default: nil const :prices, T.nilable(T::Array[Inttegro::Price::PageItem]), default: nil end |