Module: Anthropic::Models::Beta::Organization::BetaPlugin::Owner
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/organization/beta_plugin.rb,
sig/anthropic/models/beta/organization/beta_plugin.rbs
Overview
Who owns the Plugin: the organization, or the member whose personal plugin marketplace it lives in.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::Organization::BetaPluginOwnerOrganization, Anthropic::Models::Beta::Organization::BetaPluginOwnerUser
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::BetaPluginOwnerOrganization, Anthropic::Models::Beta::Organization::BetaPluginOwnerUser)
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::BetaPluginOwnerOrganization .new(type:, user_id:) ⇒ Anthropic::Beta::Organization::BetaPluginOwnerUser .new(type:, user_id:) ⇒ Anthropic::Models::Beta::Organization::BetaPlugin::owner
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
319 320 321 322 323 324 325 326 327 328 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 319 def self.new(type:, **args) case type.to_sym when :organization Anthropic::Beta::Organization::BetaPluginOwnerOrganization.new(**args) when :user Anthropic::Beta::Organization::BetaPluginOwnerUser.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 301
|
.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaPluginOwnerOrganization, Anthropic::Models::Beta::Organization::BetaPluginOwnerUser)
|
|
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 305
|