Class: Anthropic::Models::DeletedUserProfile

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

Overview

See Also:

  • Anthropic::Resources::UserProfiles#delete

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:, type: :user_profile_deleted) ⇒ DeletedUserProfile

Returns a new instance of DeletedUserProfile.

Parameters:

  • id (String) —

    Identifier of the deleted user profile, prefixed uprof_.

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

    Object type. Always user_profile_deleted.

  • id: (String)
  • type: (:user_profile_deleted) (defaults to: :user_profile_deleted)


# File 'lib/anthropic/models/deleted_user_profile.rb', line 19

Instance Attribute Details

#id ⇒ String

Identifier of the deleted user profile, prefixed uprof_.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#type ⇒ Symbol, :user_profile_deleted

Object type. Always user_profile_deleted.

Parameters:

  • value (:user_profile_deleted)

Returns:

  • (Symbol, :user_profile_deleted)


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

required :type, const: :user_profile_deleted

Instance Method Details

#to_hash ⇒ { id: String, type: :user_profile_deleted }

Returns:

  • ({ id: String, type: :user_profile_deleted })


12
# File 'sig/anthropic/models/deleted_user_profile.rbs', line 12

def to_hash: -> { id: String, type: :user_profile_deleted }