Class: ModerationAPI::Models::Wordlist::WordAddResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::Wordlist::WordAddResponse
- Defined in:
- lib/moderation_api/models/wordlist/word_add_response.rb
Overview
Instance Attribute Summary collapse
-
#added_count ⇒ Float
Number of words added.
-
#added_words ⇒ Array<String>
List of words that were added.
-
#total_count ⇒ Float
Total number of words in wordlist.
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(added_count:, added_words:, total_count:) ⇒ Object
|
|
# File 'lib/moderation_api/models/wordlist/word_add_response.rb', line 26
|
Instance Attribute Details
#added_count ⇒ Float
Number of words added
12 |
# File 'lib/moderation_api/models/wordlist/word_add_response.rb', line 12 required :added_count, Float, api_name: :addedCount |
#added_words ⇒ Array<String>
List of words that were added
18 |
# File 'lib/moderation_api/models/wordlist/word_add_response.rb', line 18 required :added_words, ModerationAPI::Internal::Type::ArrayOf[String], api_name: :addedWords |
#total_count ⇒ Float
Total number of words in wordlist
24 |
# File 'lib/moderation_api/models/wordlist/word_add_response.rb', line 24 required :total_count, Float, api_name: :totalCount |