Class: Courier::Models::ListUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::ListUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/courier/models/list_update_params.rb,
sig/courier/models/list_update_params.rbs
Overview
Instance Attribute Summary collapse
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(list_id:, name:, preferences: nil, request_options: {}) ⇒ ListUpdateParams
constructor
A new instance of ListUpdateParams.
- #to_hash ⇒ { list_id: String, name: String, preferences: Courier::RecipientPreferences?, request_options: Courier::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(list_id:, name:, preferences: nil, request_options: {}) ⇒ ListUpdateParams
Returns a new instance of ListUpdateParams.
|
|
# File 'lib/courier/models/list_update_params.rb', line 25
|
Instance Attribute Details
#list_id ⇒ String
13 |
# File 'lib/courier/models/list_update_params.rb', line 13 required :list_id, String |
#name ⇒ String
18 |
# File 'lib/courier/models/list_update_params.rb', line 18 required :name, String |
#preferences ⇒ Courier::Models::RecipientPreferences?
23 |
# File 'lib/courier/models/list_update_params.rb', line 23 optional :preferences, -> { Courier::RecipientPreferences }, nil?: true |
Instance Method Details
#to_hash ⇒ { list_id: String, name: String, preferences: Courier::RecipientPreferences?, request_options: Courier::RequestOptions }
28 29 30 31 32 33 |
# File 'sig/courier/models/list_update_params.rbs', line 28
def to_hash: -> {
list_id: String,
name: String,
preferences: Courier::RecipientPreferences?,
request_options: Courier::RequestOptions
}
|