Class: SurgeAPI::Models::VoicemailReceivedWebhookEvent::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/surge_api/models/voicemail_received_webhook_event.rb

Overview

See Also:

Defined Under Namespace

Classes: Call

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:, call:, duration:, recording_id:) ⇒ Object

The data associated with the event

Parameters:

  • id (String)

    The unique identifier for the voicemail

  • call (SurgeAPI::Models::VoicemailReceivedWebhookEvent::Data::Call)

    The call that resulted in this voicemail

  • duration (Integer)

    The duration of the voicemail in seconds

  • recording_id (String)

    The unique identifier for the recording



# File 'lib/surge_api/models/voicemail_received_webhook_event.rb', line 65

Instance Attribute Details

#callSurgeAPI::Models::VoicemailReceivedWebhookEvent::Data::Call

The call that resulted in this voicemail



51
# File 'lib/surge_api/models/voicemail_received_webhook_event.rb', line 51

required :call, -> { SurgeAPI::VoicemailReceivedWebhookEvent::Data::Call }

#durationInteger

The duration of the voicemail in seconds

Returns:

  • (Integer)


57
# File 'lib/surge_api/models/voicemail_received_webhook_event.rb', line 57

required :duration, Integer

#idString

The unique identifier for the voicemail

Returns:

  • (String)


45
# File 'lib/surge_api/models/voicemail_received_webhook_event.rb', line 45

required :id, String

#recording_idString

The unique identifier for the recording

Returns:

  • (String)


63
# File 'lib/surge_api/models/voicemail_received_webhook_event.rb', line 63

required :recording_id, String