Class: Inttegro::PaymentMethod::Page
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PaymentMethod::Page
- Defined in:
- lib/inttegro/payment_method/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.
-
#payment_methods ⇒ Array<Inttegro::PaymentMethod>
readonly
Value of the
payment_methodsfield in the Inttegro API payload. -
#size ⇒ Integer
readonly
The number of payment methods in this page.
Instance Attribute Details
#number ⇒ Integer (readonly)
The page number returned
Required in the API payload. Wire name: number.
36 37 38 39 40 |
# File 'lib/inttegro/payment_method/page.rb', line 36 class Page < T::Struct const :number, Integer const :payment_methods, T::Array[Inttegro::PaymentMethod] const :size, Integer end |
#payment_methods ⇒ Array<Inttegro::PaymentMethod> (readonly)
Value of the payment_methods field in the Inttegro API payload.
Required in the API payload. Wire name: payment_methods.
36 37 38 39 40 |
# File 'lib/inttegro/payment_method/page.rb', line 36 class Page < T::Struct const :number, Integer const :payment_methods, T::Array[Inttegro::PaymentMethod] const :size, Integer end |
#size ⇒ Integer (readonly)
The number of payment methods in this page
Required in the API payload. Wire name: size.
36 37 38 39 40 |
# File 'lib/inttegro/payment_method/page.rb', line 36 class Page < T::Struct const :number, Integer const :payment_methods, T::Array[Inttegro::PaymentMethod] const :size, Integer end |