Class: Courier::Models::NotificationTemplateResponse
- Inherits:
-
NotificationTemplatePayload
- Object
- Internal::Type::BaseModel
- NotificationTemplatePayload
- Courier::Models::NotificationTemplateResponse
- Defined in:
- lib/courier/models/notification_template_response.rb
Overview
Defined Under Namespace
Modules: State
Instance Attribute Summary collapse
-
#created ⇒ Integer
Epoch milliseconds when the template was created.
-
#creator ⇒ String
User ID of the creator.
-
#id ⇒ String
The template ID.
-
#state ⇒ Symbol, Courier::Models::NotificationTemplateResponse::State
The template state.
-
#updated ⇒ Integer?
Epoch milliseconds of last update.
-
#updater ⇒ String?
User ID of the last updater.
Attributes inherited from NotificationTemplatePayload
#brand, #content, #name, #routing, #subscription, #tags
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
Instance Attribute Details
#created ⇒ Integer
Epoch milliseconds when the template was created.
17 |
# File 'lib/courier/models/notification_template_response.rb', line 17 required :created, Integer |
#creator ⇒ String
User ID of the creator.
23 |
# File 'lib/courier/models/notification_template_response.rb', line 23 required :creator, String |
#id ⇒ String
The template ID.
11 |
# File 'lib/courier/models/notification_template_response.rb', line 11 required :id, String |
#state ⇒ Symbol, Courier::Models::NotificationTemplateResponse::State
The template state. Always uppercase.
29 |
# File 'lib/courier/models/notification_template_response.rb', line 29 required :state, enum: -> { Courier::NotificationTemplateResponse::State } |
#updated ⇒ Integer?
Epoch milliseconds of last update.
35 |
# File 'lib/courier/models/notification_template_response.rb', line 35 optional :updated, Integer |
#updater ⇒ String?
User ID of the last updater.
41 |
# File 'lib/courier/models/notification_template_response.rb', line 41 optional :updater, String |