Class: Courier::Models::Users::PreferenceBulkUpdateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/users/preference_bulk_update_response.rb,
sig/courier/models/users/preference_bulk_update_response.rbs

Overview

See Also:

  • Courier::Resources::Users::Preferences#bulk_update

Defined Under Namespace

Classes: Error

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

#initializeObject



15
# File 'sig/courier/models/users/preference_bulk_update_response.rbs', line 15

def initialize: (

Instance Attribute Details

#errorsArray<Courier::Models::Users::PreferenceBulkUpdateResponse::Error>

The topics that could not be applied, each with a reason.



12
13
# File 'lib/courier/models/users/preference_bulk_update_response.rb', line 12

required :errors,
-> { Courier::Internal::Type::ArrayOf[Courier::Models::Users::PreferenceBulkUpdateResponse::Error] }

#itemsArray<Courier::Models::Users::BulkPreferenceTopic>

The topics that were successfully created or updated.

Parameters:

  • value (::Array[Courier::Users::BulkPreferenceTopic])

Returns:



19
# File 'lib/courier/models/users/preference_bulk_update_response.rb', line 19

required :items, -> { Courier::Internal::Type::ArrayOf[Courier::Users::BulkPreferenceTopic] }

Instance Method Details

#to_hash{

Returns:

  • ({)


20
# File 'sig/courier/models/users/preference_bulk_update_response.rbs', line 20

def to_hash: -> {