Class: OpenAI::Models::Live::ServerEvent::TransportDtmfSent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::ServerEvent::TransportDtmfSent
- 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.sent"
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ TransportDtmfSent
constructor
A new instance of TransportDtmfSent.
- #to_hash ⇒ { event: String, event_id: String, ?type: :"transport.dtmf.sent", ?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 ⇒ TransportDtmfSent
Returns a new instance of TransportDtmfSent.
230 231 232 233 234 235 |
# File 'sig/openai/models/live/server_event.rbs', line 230
def initialize: (
event: String,
event_id: String,
?client_event_id: String,
?type: :"transport.dtmf.sent"
) -> void
|
Instance Attribute Details
#client_event_id ⇒ String?
The event_id of the client command, when supplied.
284 |
# File 'lib/openai/models/live/server_event.rb', line 284 optional :client_event_id, String |
#event ⇒ String
268 |
# File 'lib/openai/models/live/server_event.rb', line 268 required :event, String |
#event_id ⇒ String
273 |
# File 'lib/openai/models/live/server_event.rb', line 273 required :event_id, String |
#type ⇒ Symbol, :"transport.dtmf.sent"
278 |
# File 'lib/openai/models/live/server_event.rb', line 278 required :type, const: :"transport.dtmf.sent" |
Instance Method Details
#to_hash ⇒ { event: String, event_id: String, ?type: :"transport.dtmf.sent", ?client_event_id: String }
237 238 239 240 241 242 |
# File 'sig/openai/models/live/server_event.rbs', line 237
def to_hash: -> {
event: String,
event_id: String,
?type: :"transport.dtmf.sent",
?client_event_id: String
}
|