Class: Courier::Models::NotificationTemplateGetResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::NotificationTemplateGetResponse
- Defined in:
- lib/courier/models/notification_template_get_response.rb
Overview
Defined Under Namespace
Modules: State Classes: Notification
Instance Attribute Summary collapse
-
#created ⇒ Integer
Epoch milliseconds when the template was created.
-
#creator ⇒ String
User ID of the creator.
-
#notification ⇒ Courier::Models::NotificationTemplateGetResponse::Notification
Full document shape used in POST and PUT request bodies, and returned inside the GET response envelope.
-
#state ⇒ Symbol, Courier::Models::NotificationTemplateGetResponse::State
The template state.
-
#updated ⇒ Integer?
Epoch milliseconds of last update.
-
#updater ⇒ String?
User ID of the last updater.
Instance Method Summary collapse
-
#initialize(id:) ⇒ Object
constructor
Full document shape used in POST and PUT request bodies, and returned inside the GET response envelope.
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:) ⇒ Object
Full document shape used in POST and PUT request bodies, and returned inside the GET response envelope.
|
|
# File 'lib/courier/models/notification_template_get_response.rb', line 44
|
Instance Attribute Details
#created ⇒ Integer
Epoch milliseconds when the template was created.
11 |
# File 'lib/courier/models/notification_template_get_response.rb', line 11 required :created, Integer |
#creator ⇒ String
User ID of the creator.
17 |
# File 'lib/courier/models/notification_template_get_response.rb', line 17 required :creator, String |
#notification ⇒ Courier::Models::NotificationTemplateGetResponse::Notification
Full document shape used in POST and PUT request bodies, and returned inside the GET response envelope.
24 |
# File 'lib/courier/models/notification_template_get_response.rb', line 24 required :notification, -> { Courier::NotificationTemplateGetResponse::Notification } |
#state ⇒ Symbol, Courier::Models::NotificationTemplateGetResponse::State
The template state. Always uppercase.
30 |
# File 'lib/courier/models/notification_template_get_response.rb', line 30 required :state, enum: -> { Courier::NotificationTemplateGetResponse::State } |
#updated ⇒ Integer?
Epoch milliseconds of last update.
36 |
# File 'lib/courier/models/notification_template_get_response.rb', line 36 optional :updated, Integer |
#updater ⇒ String?
User ID of the last updater.
42 |
# File 'lib/courier/models/notification_template_get_response.rb', line 42 optional :updater, String |