Class: Zavudev::Models::Broadcasts::ContactAddParams::Contact

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/zavudev/models/broadcasts/contact_add_params.rb

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(recipient:, template_variables: nil) ⇒ Object

Parameters:

  • recipient (String)

    Phone number (E.164) or email address.

  • template_variables (Hash{Symbol=>String}) (defaults to: nil)

    Per-contact template variables to personalize the message.



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

#recipientString

Phone number (E.164) or email address.

Returns:

  • (String)


35
# File 'lib/zavudev/models/broadcasts/contact_add_params.rb', line 35

required :recipient, String

#template_variablesHash{Symbol=>String}?

Per-contact template variables to personalize the message.

Returns:

  • (Hash{Symbol=>String}, nil)


41
# File 'lib/zavudev/models/broadcasts/contact_add_params.rb', line 41

optional :template_variables, Zavudev::Internal::Type::HashOf[String], api_name: :templateVariables