Class: SurgeAPI::Models::VoicemailReceivedWebhookEvent::Data::Call
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SurgeAPI::Models::VoicemailReceivedWebhookEvent::Data::Call
- Defined in:
- lib/surge_api/models/voicemail_received_webhook_event.rb
Overview
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
-
#contact ⇒ SurgeAPI::Models::Contact
A contact who has consented to receive messages.
-
#duration ⇒ Integer
The duration of the call in seconds.
-
#id ⇒ String
The unique identifier for the call.
-
#initiated_at ⇒ Time
When the call was initiated.
-
#status ⇒ Symbol, SurgeAPI::Models::VoicemailReceivedWebhookEvent::Data::Call::Status
The status of the call.
Instance Method Summary collapse
-
#initialize(id:, contact:, duration:, initiated_at:, status:) ⇒ Object
constructor
The call that resulted in this voicemail.
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:, contact:, duration:, initiated_at:, status:) ⇒ Object
The call that resulted in this voicemail
|
|
# File 'lib/surge_api/models/voicemail_received_webhook_event.rb', line 108
|
Instance Attribute Details
#contact ⇒ SurgeAPI::Models::Contact
A contact who has consented to receive messages
88 |
# File 'lib/surge_api/models/voicemail_received_webhook_event.rb', line 88 required :contact, -> { SurgeAPI::Contact } |
#duration ⇒ Integer
The duration of the call in seconds
94 |
# File 'lib/surge_api/models/voicemail_received_webhook_event.rb', line 94 required :duration, Integer |
#id ⇒ String
The unique identifier for the call
82 |
# File 'lib/surge_api/models/voicemail_received_webhook_event.rb', line 82 required :id, String |
#initiated_at ⇒ Time
When the call was initiated
100 |
# File 'lib/surge_api/models/voicemail_received_webhook_event.rb', line 100 required :initiated_at, Time |
#status ⇒ Symbol, SurgeAPI::Models::VoicemailReceivedWebhookEvent::Data::Call::Status
The status of the call
106 |
# File 'lib/surge_api/models/voicemail_received_webhook_event.rb', line 106 required :status, enum: -> { SurgeAPI::VoicemailReceivedWebhookEvent::Data::Call::Status } |