Class: OpenAI::Models::Webhooks::LiveTransportIncomingWebhookEvent::Data::SipHeader
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Webhooks::LiveTransportIncomingWebhookEvent::Data::SipHeader
- Defined in:
- lib/openai/models/webhooks/live_transport_incoming_webhook_event.rb,
sig/openai/models/webhooks/live_transport_incoming_webhook_event.rbs
Instance Attribute Summary collapse
-
#name ⇒ String
Name of the SIP Header.
-
#value ⇒ String
Value of the SIP Header.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(session_id:, sip_headers:, sip_media_security: nil, type: :sip) ⇒ SipHeader
constructor
A new instance of SipHeader.
- #to_hash ⇒ { name: String, value: 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_with_error, 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(session_id:, sip_headers:, sip_media_security: nil, type: :sip) ⇒ SipHeader
Returns a new instance of SipHeader.
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/openai/models/webhooks/live_transport_incoming_webhook_event.rb', line 117 class SipHeader < OpenAI::Internal::Type::BaseModel # @!attribute name # Name of the SIP Header. # # @return [String] required :name, String # @!attribute value # Value of the SIP Header. # # @return [String] required :value, String # @!method initialize(name:, value:) # A header from the SIP Invite. # # @param name [String] # Name of the SIP Header. # # @param value [String] # Value of the SIP Header. end |
Instance Attribute Details
#name ⇒ String
Name of the SIP Header.
122 |
# File 'lib/openai/models/webhooks/live_transport_incoming_webhook_event.rb', line 122 required :name, String |
#value ⇒ String
Value of the SIP Header.
128 |
# File 'lib/openai/models/webhooks/live_transport_incoming_webhook_event.rb', line 128 required :value, String |
Instance Method Details
#to_hash ⇒ { name: String, value: String }
138 |
# File 'sig/openai/models/webhooks/live_transport_incoming_webhook_event.rbs', line 138
def to_hash: -> { name: String, value: String }
|