Class: Zavudev::Models::Broadcasts::ContactAddParams::Contact
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::Broadcasts::ContactAddParams::Contact
- Defined in:
- lib/zavudev/models/broadcasts/contact_add_params.rb
Instance Attribute Summary collapse
-
#recipient ⇒ String
Phone number (E.164) or email address.
-
#template_variables ⇒ Hash{Symbol=>String}?
Per-contact template variables to personalize the message.
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(recipient:, template_variables: nil) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/zavudev/models/broadcasts/contact_add_params.rb', line 30 class Contact < Zavudev::Internal::Type::BaseModel # @!attribute recipient # Phone number (E.164) or email address. # # @return [String] required :recipient, String # @!attribute template_variables # Per-contact template variables to personalize the message. # # @return [Hash{Symbol=>String}, nil] optional :template_variables, Zavudev::Internal::Type::HashOf[String], api_name: :templateVariables # @!method initialize(recipient:, template_variables: nil) # @param recipient [String] Phone number (E.164) or email address. # # @param template_variables [Hash{Symbol=>String}] Per-contact template variables to personalize the message. end |
Instance Attribute Details
#recipient ⇒ String
Phone number (E.164) or email address.
35 |
# File 'lib/zavudev/models/broadcasts/contact_add_params.rb', line 35 required :recipient, String |