Class: OpenAI::Models::Webhooks::RealtimeCallIncomingWebhookEvent::Data::SipHeader

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb,
sig/openai/models/webhooks/realtime_call_incoming_webhook_event.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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(call_id:, sip_headers:, sip_media_security: nil) ⇒ SipHeader

Returns a new instance of SipHeader.

Parameters:

  • name —

    Name of the SIP Header.

  • value —

    Value of the SIP Header.

  • name: (String)
  • value: (String)


108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb', line 108

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.

Returns:

  • (String)


113
# File 'lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb', line 113

required :name, String

#value ⇒ String

Value of the SIP Header.

Returns:

  • (String)


119
# File 'lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb', line 119

required :value, String

Instance Method Details

#to_hash ⇒ { name: String, value: String }

Returns:

  • ({ name: String, value: String })


132
# File 'sig/openai/models/webhooks/realtime_call_incoming_webhook_event.rbs', line 132

def to_hash: -> { name: String, value: String }