Class: Sentdm::Models::MessageSendParams::Template
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Sentdm::Models::MessageSendParams::Template
- Defined in:
- lib/sentdm/models/message_send_params.rb
Instance Attribute Summary collapse
-
#id ⇒ String?
Template ID (mutually exclusive with name).
-
#name ⇒ String?
Template name (mutually exclusive with id).
-
#parameters ⇒ Hash{Symbol=>String}?
Template variable parameters for personalization.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, parameters: nil) ⇒ Object
constructor
Template reference (by id or name, with optional parameters).
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: nil, name: nil, parameters: nil) ⇒ Object
Template reference (by id or name, with optional parameters)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/sentdm/models/message_send_params.rb', line 58 class Template < Sentdm::Internal::Type::BaseModel # @!attribute id # Template ID (mutually exclusive with name) # # @return [String, nil] optional :id, String, nil?: true # @!attribute name # Template name (mutually exclusive with id) # # @return [String, nil] optional :name, String, nil?: true # @!attribute parameters # Template variable parameters for personalization # # @return [Hash{Symbol=>String}, nil] optional :parameters, Sentdm::Internal::Type::HashOf[String], nil?: true # @!method initialize(id: nil, name: nil, parameters: nil) # Template reference (by id or name, with optional parameters) # # @param id [String, nil] Template ID (mutually exclusive with name) # # @param name [String, nil] Template name (mutually exclusive with id) # # @param parameters [Hash{Symbol=>String}, nil] Template variable parameters for personalization end |
Instance Attribute Details
#id ⇒ String?
Template ID (mutually exclusive with name)
63 |
# File 'lib/sentdm/models/message_send_params.rb', line 63 optional :id, String, nil?: true |
#name ⇒ String?
Template name (mutually exclusive with id)
69 |
# File 'lib/sentdm/models/message_send_params.rb', line 69 optional :name, String, nil?: true |