Class: Inttegro::Price::PageRequest
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Price::PageRequest
- Defined in:
- lib/inttegro/price/page_request.rb
Overview
Typed representation of the page request 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
-
#page_number ⇒ Integer?
readonly
Page index to fetch.
-
#page_size ⇒ Integer?
readonly
Number of prices per page (1-256).
-
#product_id ⇒ String?
readonly
Optional product ID to scope the page to a single product.
Instance Attribute Details
#page_number ⇒ Integer? (readonly)
Page index to fetch. Omit it or send 0 to request page 1; otherwise use 1 through 10.
Optional in the API payload; omitted values default to nil. Wire name: page_number.
35 36 37 38 39 |
# File 'lib/inttegro/price/page_request.rb', line 35 class PageRequest < T::Struct const :page_number, T.nilable(Integer), default: nil const :page_size, T.nilable(Integer), default: nil const :product_id, T.nilable(String), default: nil end |
#page_size ⇒ Integer? (readonly)
Number of prices per page (1-256)
Optional in the API payload; omitted values default to nil. Wire name: page_size.
35 36 37 38 39 |
# File 'lib/inttegro/price/page_request.rb', line 35 class PageRequest < T::Struct const :page_number, T.nilable(Integer), default: nil const :page_size, T.nilable(Integer), default: nil const :product_id, T.nilable(String), default: nil end |
#product_id ⇒ String? (readonly)
Optional product ID to scope the page to a single product
Optional in the API payload; omitted values default to nil. Wire name: product_id.
35 36 37 38 39 |
# File 'lib/inttegro/price/page_request.rb', line 35 class PageRequest < T::Struct const :page_number, T.nilable(Integer), default: nil const :page_size, T.nilable(Integer), default: nil const :product_id, T.nilable(String), default: nil end |