Class: Anthropic::Models::Beta::BetaOrganization
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaOrganization
- Defined in:
- lib/anthropic/models/beta/beta_organization.rb,
sig/anthropic/models/beta/beta_organization.rbs
Overview
Instance Attribute Summary collapse
-
#id ⇒ String
ID of the Organization.
-
#name ⇒ String
Name of the Organization.
-
#type ⇒ Symbol, :organization
Object type.
Instance Method Summary collapse
-
#initialize ⇒ BetaOrganization
constructor
A new instance of BetaOrganization.
- #to_hash ⇒ { id: String, name: String, type: :organization }
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 ⇒ BetaOrganization
Returns a new instance of BetaOrganization.
15 |
# File 'sig/anthropic/models/beta/beta_organization.rbs', line 15
def initialize: (id: String, name: String, ?type: :organization) -> void
|
Instance Attribute Details
#id ⇒ String
ID of the Organization.
12 |
# File 'lib/anthropic/models/beta/beta_organization.rb', line 12 required :id, String |
#name ⇒ String
Name of the Organization.
18 |
# File 'lib/anthropic/models/beta/beta_organization.rb', line 18 required :name, String |
#type ⇒ Symbol, :organization
Object type.
For Organizations, this is always "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 }
17 |
# File 'sig/anthropic/models/beta/beta_organization.rbs', line 17
def to_hash: -> { id: String, name: String, type: :organization }
|