Class: Anthropic::Models::Beta::Organization::BetaOrganizationRateLimitValue

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_organization_rate_limit_value.rb,
sig/anthropic/models/beta/organization/beta_organization_rate_limit_value.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:, value:) ⇒ BetaOrganizationRateLimitValue

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaOrganizationRateLimitValue for more details.

Parameters:

  • type (String)

    The limiter type (for example, requests_per_minute or `input_tokens_per_minute

  • value (Integer)

    The configured limit value for this limiter type.

  • type: (String)
  • value: (Integer)


# File 'lib/anthropic/models/beta/organization/beta_organization_rate_limit_value.rb', line 21

Instance Attribute Details

#typeString

The limiter type (for example, requests_per_minute or input_tokens_per_minute).

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/beta/organization/beta_organization_rate_limit_value.rb', line 13

required :type, String

#valueInteger

The configured limit value for this limiter type.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


19
# File 'lib/anthropic/models/beta/organization/beta_organization_rate_limit_value.rb', line 19

required :value, Integer

Instance Method Details

#to_hash{ type: String, value: Integer }

Returns:

  • ({ type: String, value: Integer })


15
# File 'sig/anthropic/models/beta/organization/beta_organization_rate_limit_value.rbs', line 15

def to_hash: -> { type: String, value: Integer }