Class: Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rb,
sig/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rbs

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

#initialize(type: :usage_tier) ⇒ BetaSpendLimitUsageTierScope

Scope of the monthly spend cap Anthropic sets for a Claude Console organization from its usage tier, or a higher cap Anthropic granted the organization. Read-only; its created_at and updated_at are the organization's creation time, so amount can change while updated_at stays the same.

Parameters:

  • type (Symbol, :usage_tier) (defaults to: :usage_tier) —

    Scope type. Always usage_tier for this scope.

  • type: (:usage_tier) (defaults to: :usage_tier)


# File 'lib/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rb', line 14

Instance Attribute Details

#type ⇒ Symbol, :usage_tier

Scope type. Always usage_tier for this scope.

Parameters:

  • value (:usage_tier)

Returns:

  • (Symbol, :usage_tier)


12
# File 'lib/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rb', line 12

required :type, const: :usage_tier

Instance Method Details

#to_hash ⇒ { type: :usage_tier }

Returns:

  • ({ type: :usage_tier })


12
# File 'sig/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rbs', line 12

def to_hash: -> { type: :usage_tier }