Class: OpenAI::Models::Webhooks::LiveTransportConnectedWebhookEvent::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Webhooks::LiveTransportConnectedWebhookEvent::Data
- Defined in:
- lib/openai/models/webhooks/live_transport_connected_webhook_event.rb,
sig/openai/models/webhooks/live_transport_connected_webhook_event.rbs
Overview
Instance Attribute Summary collapse
-
#session_id ⇒ String
The Live session ID to use with the sideband attach endpoint.
-
#type ⇒ :webrtc
The session transport.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(session_id:, type: :webrtc) ⇒ Data
constructor
A new instance of Data.
- #to_hash ⇒ { session_id: String, ?type: :webrtc }
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(session_id:, type: :webrtc) ⇒ Data
Returns a new instance of Data.
|
|
# File 'lib/openai/models/webhooks/live_transport_connected_webhook_event.rb', line 64
|
Instance Attribute Details
#session_id ⇒ String
The Live session ID to use with the sideband attach endpoint.
56 |
# File 'lib/openai/models/webhooks/live_transport_connected_webhook_event.rb', line 56 required :session_id, String |
#type ⇒ :webrtc
The session transport.
62 |
# File 'lib/openai/models/webhooks/live_transport_connected_webhook_event.rb', line 62 required :type, const: :webrtc |
Instance Method Details
#to_hash ⇒ { session_id: String, ?type: :webrtc }
61 |
# File 'sig/openai/models/webhooks/live_transport_connected_webhook_event.rbs', line 61
def to_hash: -> { session_id: String, ?type: :webrtc }
|