Class: Inttegro::MessageTemplate::Page

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

#message_templates ⇒ Array<Inttegro::MessageTemplate> (readonly)

Value of the message_templates field in the Inttegro API payload.

Required in the API payload. Wire name: message_templates.

Returns:



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

class Page < T::Struct
  const :number, Integer
  const :size, Integer
  const :message_templates, T::Array[Inttegro::MessageTemplate]
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/message_template/page.rb', line 36

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

#size ⇒ Integer (readonly)

Number of templates returned in this page after filters are applied.

Required in the API payload. Wire name: size.

Returns:

  • (Integer)


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

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