Class: OpenAI::Models::Live::SidebandClientEvent::TransportDtmfSend
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::SidebandClientEvent::TransportDtmfSend
- Defined in:
- lib/openai/models/live/sideband_client_event.rb,
sig/openai/models/live/sideband_client_event.rbs
Instance Attribute Summary collapse
-
#event ⇒ String
The DTMF key to send: one of
0–9,A–D,*, or#. -
#event_id ⇒ String?
Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.
- #type ⇒ Symbol, :"transport.dtmf.send"
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(event:, event_id: nil, type: :"transport.dtmf.send") ⇒ TransportDtmfSend
constructor
A new instance of TransportDtmfSend.
- #to_hash ⇒ { event: String, ?type: :"transport.dtmf.send", ?event_id: String? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(event:, event_id: nil, type: :"transport.dtmf.send") ⇒ TransportDtmfSend
Returns a new instance of TransportDtmfSend.
|
|
# File 'lib/openai/models/live/sideband_client_event.rb', line 74
|
Instance Attribute Details
#event ⇒ String
The DTMF key to send: one of 0–9, A–D, *, or #.
60 |
# File 'lib/openai/models/live/sideband_client_event.rb', line 60 required :event, String |
#event_id ⇒ String?
Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.
72 |
# File 'lib/openai/models/live/sideband_client_event.rb', line 72 optional :event_id, String, nil?: true |
#type ⇒ Symbol, :"transport.dtmf.send"
65 |
# File 'lib/openai/models/live/sideband_client_event.rb', line 65 required :type, const: :"transport.dtmf.send" |
Instance Method Details
#to_hash ⇒ { event: String, ?type: :"transport.dtmf.send", ?event_id: String? }
47 48 49 50 51 |
# File 'sig/openai/models/live/sideband_client_event.rbs', line 47
def to_hash: -> {
event: String,
?type: :"transport.dtmf.send",
?event_id: String?
}
|