Class: Telnyx::Models::Messages::RcSendParams::SMSFallback

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/messages/rc_send_params.rb,
sig/telnyx/models/messages/rc_send_params.rbs

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

#initializeSMSFallback

Returns a new instance of SMSFallback.

Parameters:

  • from: (String)
  • text: (String)


126
# File 'sig/telnyx/models/messages/rc_send_params.rbs', line 126

def initialize: (?from: String, ?text: String) -> void

Instance Attribute Details

#fromString?

Phone number in +E.164 format

Parameters:

  • (String)

Returns:

  • (String, nil)


115
# File 'lib/telnyx/models/messages/rc_send_params.rb', line 115

optional :from, String

#textString?

Text (maximum 3072 characters)

Parameters:

  • (String)

Returns:

  • (String, nil)


121
# File 'lib/telnyx/models/messages/rc_send_params.rb', line 121

optional :text, String

Instance Method Details

#to_hash{ from: String, text: String }

Returns:

  • ({ from: String, text: String })


128
# File 'sig/telnyx/models/messages/rc_send_params.rbs', line 128

def to_hash: -> { from: String, text: String }