Class: Cadenya::Models::AIProviderKeySpec::Credentials::APIKey

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#api_key

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

#initializeAPIKey

Returns a new instance of APIKey.

Parameters:

  • api_key: (String)


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

def initialize: (?api_key: String) -> void

Instance Attribute Details

#api_keyString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :api_key, String, api_name: :apiKey

Instance Method Details

#to_hash{ api_key: String }

Returns:

  • ({ api_key: String })


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

def to_hash: -> { api_key: String }