Class: Cadenya::Models::AIProviderKeySpec::Credentials::Headers

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

Overview

See Also:

  • Cadenya::Models::AIProviderKeySpec::Credentials#headers

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

#initializeHeaders

Returns a new instance of Headers.

Parameters:

  • headers: (::Hash[Symbol, String])


171
# File 'sig/cadenya/models/ai_provider_key_spec.rbs', line 171

def initialize: (?headers: ::Hash[Symbol, String]) -> void

Instance Attribute Details

#headersHash{Symbol=>String}?

Parameters:

  • (::Hash[Symbol, String])

Returns:

  • (Hash{Symbol=>String}, nil)


177
# File 'lib/cadenya/models/ai_provider_key_spec.rb', line 177

optional :headers, Cadenya::Internal::Type::HashOf[String]

Instance Method Details

#to_hash{ headers: ::Hash[Symbol, String] }

Returns:

  • ({ headers: ::Hash[Symbol, String] })


173
# File 'sig/cadenya/models/ai_provider_key_spec.rbs', line 173

def to_hash: -> { headers: ::Hash[Symbol, String] }