Class: Anthropic::Models::Beta::BetaOrganization

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

Overview

See Also:

  • Anthropic::Resources::Beta::Organization#retrieve

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

#initializeBetaOrganization

Returns a new instance of BetaOrganization.

Parameters:

  • id: (String)
  • name: (String)
  • type: (:organization)


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

def initialize: (id: String, name: String, ?type: :organization) -> void

Instance Attribute Details

#idString

ID of the Organization.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#nameString

Name of the Organization.

Parameters:

  • value (String)

Returns:

  • (String)


18
# File 'lib/anthropic/models/beta/beta_organization.rb', line 18

required :name, String

#typeSymbol, :organization

Object type.

For Organizations, this is always "organization".

Parameters:

  • value (:organization)

Returns:

  • (Symbol, :organization)


26
# File 'lib/anthropic/models/beta/beta_organization.rb', line 26

required :type, const: :organization

Instance Method Details

#to_hash{ id: String, name: String, type: :organization }

Returns:

  • ({ id: String, name: String, type: :organization })


17
# File 'sig/anthropic/models/beta/beta_organization.rbs', line 17

def to_hash: -> { id: String, name: String, type: :organization }