Class: OpenAI::Models::Live::ServerEvent::TransportDtmfSend
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::ServerEvent::TransportDtmfSend
- Defined in:
- lib/openai/models/live/server_event.rb,
sig/openai/models/live/server_event.rbs
Instance Attribute Summary collapse
-
#client_event_id ⇒ String?
The event_id of the client command, when supplied.
- #event ⇒ String
- #event_id ⇒ String
- #type ⇒ Symbol, :"transport.dtmf.send"
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ TransportDtmfSend
constructor
A new instance of TransportDtmfSend.
- #to_hash ⇒ { event: String, event_id: String, ?type: :"transport.dtmf.send", ?client_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 ⇒ TransportDtmfSend
Returns a new instance of TransportDtmfSend.
192 193 194 195 196 197 |
# File 'sig/openai/models/live/server_event.rbs', line 192
def initialize: (
event: String,
event_id: String,
?client_event_id: String,
?type: :"transport.dtmf.send"
) -> void
|
Instance Attribute Details
#client_event_id ⇒ String?
The event_id of the client command, when supplied.
247 |
# File 'lib/openai/models/live/server_event.rb', line 247 optional :client_event_id, String |
#event ⇒ String
231 |
# File 'lib/openai/models/live/server_event.rb', line 231 required :event, String |
#event_id ⇒ String
236 |
# File 'lib/openai/models/live/server_event.rb', line 236 required :event_id, String |
#type ⇒ Symbol, :"transport.dtmf.send"
241 |
# File 'lib/openai/models/live/server_event.rb', line 241 required :type, const: :"transport.dtmf.send" |
Instance Method Details
#to_hash ⇒ { event: String, event_id: String, ?type: :"transport.dtmf.send", ?client_event_id: String }
199 200 201 202 203 204 |
# File 'sig/openai/models/live/server_event.rbs', line 199
def to_hash: -> {
event: String,
event_id: String,
?type: :"transport.dtmf.send",
?client_event_id: String
}
|