Class: Inttegro::File::Page

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/file/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

Instance Attribute Details

#files ⇒ Array<Inttegro::File> (readonly)

Value of the files field in the Inttegro API payload.

Required in the API payload. Wire name: files.

Returns:



36
37
38
39
40
# File 'lib/inttegro/file/page.rb', line 36

class Page < T::Struct
  const :number, Integer
  const :size, Integer
  const :files, T::Array[Inttegro::File]
end

#number ⇒ Integer (readonly)

Value of the number field in the Inttegro API payload.

Required in the API payload. Wire name: number.

Returns:

  • (Integer)


36
37
38
39
40
# File 'lib/inttegro/file/page.rb', line 36

class Page < T::Struct
  const :number, Integer
  const :size, Integer
  const :files, T::Array[Inttegro::File]
end

#size ⇒ Integer (readonly)

Value of the size field in the Inttegro API payload.

Required in the API payload. Wire name: size.

Returns:

  • (Integer)


36
37
38
39
40
# File 'lib/inttegro/file/page.rb', line 36

class Page < T::Struct
  const :number, Integer
  const :size, Integer
  const :files, T::Array[Inttegro::File]
end