Module: Anthropic::Models::Beta::Organization::BetaPluginMarketplace::Owner
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb,
sig/anthropic/models/beta/organization/beta_plugin_marketplace.rbs
Overview
The organization, or the member whose personal plugin marketplace it is.
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.
171 172 173 174 175 176 177 178 179 180 |
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 171 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_marketplace.rb', line 153
|
.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaPluginOwnerOrganization, Anthropic::Models::Beta::Organization::BetaPluginOwnerUser)
|
|
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 157
|
Instance Method Details
#self?.variants ⇒ ::Array[Anthropic::Models::Beta::Organization::BetaPluginMarketplace::owner]
98 |
# File 'sig/anthropic/models/beta/organization/beta_plugin_marketplace.rbs', line 98
def self?.variants: -> ::Array[Anthropic::Models::Beta::Organization::BetaPluginMarketplace::owner]
|