Class: Anthropic::Models::OrganizationInfo

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

Overview

See Also:

  • Anthropic::Resources::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

#initialize(id:, name:, type: :organization) ⇒ OrganizationInfo

Some parameter documentations has been truncated, see Anthropic::Models::OrganizationInfo for more details.

Parameters:

  • id (String) —

    ID of the Organization.

  • name (String) —

    Name of the Organization.

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

    Object type.

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


# File 'lib/anthropic/models/organization_info.rb', line 27

Instance Attribute Details

#id ⇒ String

ID of the Organization.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/anthropic/models/organization_info.rb', line 11

required :id, String

#name ⇒ String

Name of the Organization.

Parameters:

  • value (String)

Returns:

  • (String)


17
# File 'lib/anthropic/models/organization_info.rb', line 17

required :name, String

#type ⇒ Symbol, :organization

Object type.

For Organizations, this is always "organization".

Parameters:

  • value (:organization)

Returns:

  • (Symbol, :organization)


25
# File 'lib/anthropic/models/organization_info.rb', line 25

required :type, const: :organization

Instance Method Details

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

Returns:

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


14
# File 'sig/anthropic/models/organization_info.rbs', line 14

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