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)
Instance Method Summary collapse
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants
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:, **args) ⇒ Anthropic::Models::Beta::Organization::BetaPluginOwnerOrganization, Anthropic::Models::Beta::Organization::BetaPluginOwnerUser
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
297 298 299 300 301 302 303 304 305 306 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 297 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 279
|
.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaPluginOwnerOrganization, Anthropic::Models::Beta::Organization::BetaPluginOwnerUser)
|
|
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 283
|
Instance Method Details
#self?.variants ⇒ ::Array[Anthropic::Models::Beta::Organization::BetaPlugin::owner]
182 |
# File 'sig/anthropic/models/beta/organization/beta_plugin.rbs', line 182
def self?.variants: -> ::Array[Anthropic::Models::Beta::Organization::BetaPlugin::owner]
|