Class: ModerationAPI::Models::Wordlist::WordRemoveResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moderation_api/models/wordlist/word_remove_response.rb

Overview

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(removed_count:, removed_words:, total_count:) ⇒ Object

Parameters:

  • removed_count (Float)

    Number of words removed

  • removed_words (Array<String>)

    List of words removed

  • total_count (Float)

    Total number of words in wordlist



# File 'lib/moderation_api/models/wordlist/word_remove_response.rb', line 26

Instance Attribute Details

#removed_countFloat

Number of words removed

Returns:

  • (Float)


12
# File 'lib/moderation_api/models/wordlist/word_remove_response.rb', line 12

required :removed_count, Float, api_name: :removedCount

#removed_wordsArray<String>

List of words removed

Returns:

  • (Array<String>)


18
# File 'lib/moderation_api/models/wordlist/word_remove_response.rb', line 18

required :removed_words, ModerationAPI::Internal::Type::ArrayOf[String], api_name: :removedWords

#total_countFloat

Total number of words in wordlist

Returns:

  • (Float)


24
# File 'lib/moderation_api/models/wordlist/word_remove_response.rb', line 24

required :total_count, Float, api_name: :totalCount