Class: Anthropic::Models::Beta::BetaDeletedSkill

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

Overview

See Also:

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

#initializeBetaDeletedSkill

Returns a new instance of BetaDeletedSkill.

Parameters:

  • id: (String)
  • type: (:skill_deleted)


13
# File 'sig/anthropic/models/beta/beta_deleted_skill.rbs', line 13

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

Instance Attribute Details

#idString

Unique identifier for the skill.

The format and length of IDs may change over time.

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/anthropic/models/beta/beta_deleted_skill.rb', line 14

required :id, String

#typeSymbol, :skill_deleted

Deleted object type.

For Skills, this is always "skill_deleted".

Parameters:

  • value (:skill_deleted)

Returns:

  • (Symbol, :skill_deleted)


22
# File 'lib/anthropic/models/beta/beta_deleted_skill.rb', line 22

required :type, const: :skill_deleted

Instance Method Details

#to_hash{ id: String, type: :skill_deleted }

Returns:

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


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

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