Class: Revox::Models::CallCreateResponse::Call::LastCallAttempt::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: Type

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(id:, created_at:, message_body:, to_phone_number:, twilio_message_sid:, type:) ⇒ Object

Parameters:



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

Instance Attribute Details

#created_atObject

When the SMS was sent.

Parameters:

  • value (top)

Returns:

  • (Object)


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

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

#idString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#message_bodyString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :message_body, String

#to_phone_numberString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :to_phone_number, String

#twilio_message_sidString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :twilio_message_sid, String, nil?: true

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

Parameters:

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

Returns:



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

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

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {