Class: Knockapi::Models::Messages::BatchGetContentResponseItem

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/knockapi/models/messages/batch_get_content_response.rb

Defined Under Namespace

Modules: Data

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(_typename:, data:, inserted_at:, message_id:) ⇒ Object

The content of a message.



# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 31

Instance Attribute Details

#_typenameString

The typename of the schema.

Returns:

  • (String)


11
# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 11

required :_typename, String, api_name: :__typename

#dataKnockapi::Models::Messages::BatchGetContentResponseItem::Data::MessageEmailContent, ...

Content data specific to the channel type.



17
# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 17

required :data, union: -> { Knockapi::Models::Messages::BatchGetContentResponseItem::Data }

#inserted_atTime

Timestamp when the message content was created.

Returns:

  • (Time)


23
# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 23

required :inserted_at, Time

#message_idString

The unique identifier for the message content.

Returns:

  • (String)


29
# File 'lib/knockapi/models/messages/batch_get_content_response.rb', line 29

required :message_id, String