Class: SurgeAPI::Models::CallEndedWebhookEvent::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SurgeAPI::Models::CallEndedWebhookEvent::Data
- Defined in:
- lib/surge_api/models/call_ended_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::CallEndedWebhookEvent::Data::Status
The status of the call.
Instance Method Summary collapse
-
#initialize(id:, contact:, duration:, initiated_at:, status:) ⇒ Object
constructor
The data associated with the event.
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 data associated with the event
|
|
# File 'lib/surge_api/models/call_ended_webhook_event.rb', line 71
|
Instance Attribute Details
#contact ⇒ SurgeAPI::Models::Contact
A contact who has consented to receive messages
51 |
# File 'lib/surge_api/models/call_ended_webhook_event.rb', line 51 required :contact, -> { SurgeAPI::Contact } |
#duration ⇒ Integer
The duration of the call in seconds
57 |
# File 'lib/surge_api/models/call_ended_webhook_event.rb', line 57 required :duration, Integer |
#id ⇒ String
The unique identifier for the call
45 |
# File 'lib/surge_api/models/call_ended_webhook_event.rb', line 45 required :id, String |
#initiated_at ⇒ Time
When the call was initiated
63 |
# File 'lib/surge_api/models/call_ended_webhook_event.rb', line 63 required :initiated_at, Time |
#status ⇒ Symbol, SurgeAPI::Models::CallEndedWebhookEvent::Data::Status
The status of the call
69 |
# File 'lib/surge_api/models/call_ended_webhook_event.rb', line 69 required :status, enum: -> { SurgeAPI::CallEndedWebhookEvent::Data::Status } |