Module: Anthropic::Models::Beta::Organization::BetaStorageMemberParam
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/organization/beta_storage_member_param.rb,
sig/anthropic/models/beta/organization/beta_storage_member_param.rbs
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::Organization::BetaInternalStorageParam, Anthropic::Models::Beta::Organization::BetaExternalStorageMemberParam
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. -
.values ⇒ Array<Symbol>
-
.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaInternalStorageParam, Anthropic::Models::Beta::Organization::BetaExternalStorageMemberParam)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:) ⇒ Anthropic::Beta::Organization::BetaInternalStorageParam .new(type:, external_storage_id:) ⇒ Anthropic::Beta::Organization::BetaExternalStorageMemberParam .new(type:, external_storage_id:) ⇒ Anthropic::Models::Beta::Organization::beta_storage_member_param
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaStorageMemberParam for more details.
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/anthropic/models/beta/organization/beta_storage_member_param.rb', line 46 def self.new(type:, **args) case type.to_sym when :internal Anthropic::Beta::Organization::BetaInternalStorageParam.new(**args) when :external Anthropic::Beta::Organization::BetaExternalStorageMemberParam.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/organization/beta_storage_member_param.rb', line 24
|
.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaInternalStorageParam, Anthropic::Models::Beta::Organization::BetaExternalStorageMemberParam)
|
|
# File 'lib/anthropic/models/beta/organization/beta_storage_member_param.rb', line 28
|