Class: Revox::Models::CallCreateResponse::Call::CallAttempt::SMSLog

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/call_create_response.rb,
sig/revox/models/call_create_response.rbs

Defined Under Namespace

Modules: Provider, Type

Instance Attribute Summary collapse

Class Method 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(id:, created_at:, message_body:, provider:, provider_message_id:, to_phone_number:, type:) ⇒ Object

Parameters:



# File 'lib/revox/models/call_create_response.rb', line 2378

Instance Attribute Details

#created_atObject

When the SMS was sent.

Parameters:

  • value (top)

Returns:

  • (Object)


2351
# File 'lib/revox/models/call_create_response.rb', line 2351

required :created_at, Revox::Internal::Type::Unknown

#idString

Parameters:

  • value (String)

Returns:

  • (String)


2345
# File 'lib/revox/models/call_create_response.rb', line 2345

required :id, String

#message_bodyString

Parameters:

  • value (String)

Returns:

  • (String)


2356
# File 'lib/revox/models/call_create_response.rb', line 2356

required :message_body, String

#providerSymbol, Revox::Models::CallCreateResponse::Call::CallAttempt::SMSLog::Provider

Parameters:

  • value (Revox::Models::CallCreateResponse::Call::CallAttempt::SMSLog::provider)

Returns:



2361
# File 'lib/revox/models/call_create_response.rb', line 2361

required :provider, enum: -> { Revox::Models::CallCreateResponse::Call::CallAttempt::SMSLog::Provider }

#provider_message_idString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


2366
# File 'lib/revox/models/call_create_response.rb', line 2366

required :provider_message_id, String, nil?: true

#to_phone_numberString

Parameters:

  • value (String)

Returns:

  • (String)


2371
# File 'lib/revox/models/call_create_response.rb', line 2371

required :to_phone_number, String

#typeSymbol, Revox::Models::CallCreateResponse::Call::CallAttempt::SMSLog::Type

Parameters:

  • value (Revox::Models::CallCreateResponse::Call::CallAttempt::SMSLog::type_)

Returns:



2376
# File 'lib/revox/models/call_create_response.rb', line 2376

required :type, enum: -> { Revox::Models::CallCreateResponse::Call::CallAttempt::SMSLog::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/revox/models/call_create_response.rb', line 2400

Instance Method Details

#to_hash{

Returns:

  • ({)


1899
# File 'sig/revox/models/call_create_response.rbs', line 1899

def to_hash: -> {