Class: ModerationAPI::Models::WordlistUpdateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moderation_api/models/wordlist_update_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(id:, created_at:, name:, organization_id:, strict:, user_id:, words:) ⇒ Object

Parameters:

  • id (String)

    ID of the wordlist

  • created_at (String)

    Creation date of the wordlist

  • name (String, nil)

    Name of the wordlist

  • organization_id (String)

    ID of the organization

  • strict (Boolean)

    Strict mode

  • user_id (String, nil)

    ID of the user

  • words (Array<String>)

    Words in the wordlist



# File 'lib/moderation_api/models/wordlist_update_response.rb', line 49

Instance Attribute Details

#created_atString

Creation date of the wordlist

Returns:

  • (String)


17
# File 'lib/moderation_api/models/wordlist_update_response.rb', line 17

required :created_at, String, api_name: :createdAt

#idString

ID of the wordlist

Returns:

  • (String)


11
# File 'lib/moderation_api/models/wordlist_update_response.rb', line 11

required :id, String

#nameString?

Name of the wordlist

Returns:

  • (String, nil)


23
# File 'lib/moderation_api/models/wordlist_update_response.rb', line 23

required :name, String, nil?: true

#organization_idString

ID of the organization

Returns:

  • (String)


29
# File 'lib/moderation_api/models/wordlist_update_response.rb', line 29

required :organization_id, String, api_name: :organizationId

#strictBoolean

Strict mode

Returns:

  • (Boolean)


35
# File 'lib/moderation_api/models/wordlist_update_response.rb', line 35

required :strict, ModerationAPI::Internal::Type::Boolean

#user_idString?

ID of the user

Returns:

  • (String, nil)


41
# File 'lib/moderation_api/models/wordlist_update_response.rb', line 41

required :user_id, String, api_name: :userId, nil?: true

#wordsArray<String>

Words in the wordlist

Returns:

  • (Array<String>)


47
# File 'lib/moderation_api/models/wordlist_update_response.rb', line 47

required :words, ModerationAPI::Internal::Type::ArrayOf[String]