Class: Courier::Models::NotificationListResponse::Result::Notification

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/notification_list_response.rb

Defined Under Namespace

Classes: Tags

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(id:, created_at:, event_ids:, routing:, topic_id:, updated_at:, note: nil, tags: nil, title: nil) ⇒ Object

Parameters:



# File 'lib/courier/models/notification_list_response.rb', line 80

Instance Attribute Details

#created_atInteger

Returns:

  • (Integer)


42
# File 'lib/courier/models/notification_list_response.rb', line 42

required :created_at, Integer

#event_idsArray<String>

Array of event IDs associated with this notification

Returns:

  • (Array<String>)


48
# File 'lib/courier/models/notification_list_response.rb', line 48

required :event_ids, Courier::Internal::Type::ArrayOf[String]

#idString

Returns:

  • (String)


37
# File 'lib/courier/models/notification_list_response.rb', line 37

required :id, String

#noteString?

Returns:

  • (String, nil)


68
# File 'lib/courier/models/notification_list_response.rb', line 68

optional :note, String

#routingCourier::Models::MessageRouting



53
# File 'lib/courier/models/notification_list_response.rb', line 53

required :routing, -> { Courier::MessageRouting }

#tagsCourier::Models::NotificationListResponse::Result::Notification::Tags?



73
# File 'lib/courier/models/notification_list_response.rb', line 73

optional :tags, -> { Courier::Models::NotificationListResponse::Result::Notification::Tags }, nil?: true

#titleString?

Returns:

  • (String, nil)


78
# File 'lib/courier/models/notification_list_response.rb', line 78

optional :title, String, nil?: true

#topic_idString

Returns:

  • (String)


58
# File 'lib/courier/models/notification_list_response.rb', line 58

required :topic_id, String

#updated_atInteger

Returns:

  • (Integer)


63
# File 'lib/courier/models/notification_list_response.rb', line 63

required :updated_at, Integer