Class: Telnyx::Models::CustomSipHeader

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/custom_sip_header.rb,
sig/telnyx/models/custom_sip_header.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #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(name:, value:) ⇒ CustomSipHeader

Returns a new instance of CustomSipHeader.

Parameters:

  • name (String)

    The name of the header to add.

  • value (String)

    The value of the header.

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


# File 'lib/telnyx/models/custom_sip_header.rb', line 18

Instance Attribute Details

#nameString

The name of the header to add.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/telnyx/models/custom_sip_header.rb', line 10

required :name, String

#valueString

The value of the header.

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/telnyx/models/custom_sip_header.rb', line 16

required :value, String

Instance Method Details

#to_hash{ name: String, value: String }

Returns:

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


12
# File 'sig/telnyx/models/custom_sip_header.rbs', line 12

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