Class: Courier::Models::Users::PreferenceUpdateOrCreateTopicParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::Users::PreferenceUpdateOrCreateTopicParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/courier/models/users/preference_update_or_create_topic_params.rb,
sig/courier/models/users/preference_update_or_create_topic_params.rbs
Overview
Defined Under Namespace
Classes: Topic
Instance Attribute Summary collapse
-
#tenant_id ⇒ String?
Update the preferences of a user for this specific tenant context.
- #topic ⇒ Courier::Models::Users::PreferenceUpdateOrCreateTopicParams::Topic
- #topic_id ⇒ String
- #user_id ⇒ String
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize ⇒ PreferenceUpdateOrCreateTopicParams
constructor
A new instance of PreferenceUpdateOrCreateTopicParams.
- #to_hash ⇒ { user_id: String, topic_id: String, topic: Courier::Users::PreferenceUpdateOrCreateTopicParams::Topic, tenant_id: String?, 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 ⇒ PreferenceUpdateOrCreateTopicParams
Returns a new instance of PreferenceUpdateOrCreateTopicParams.
25 26 27 28 29 30 31 |
# File 'sig/courier/models/users/preference_update_or_create_topic_params.rbs', line 25
def initialize: (
user_id: String,
topic_id: String,
topic: Courier::Users::PreferenceUpdateOrCreateTopicParams::Topic,
?tenant_id: String?,
?request_options: Courier::request_opts
) -> void
|
Instance Attribute Details
#tenant_id ⇒ String?
Update the preferences of a user for this specific tenant context.
30 |
# File 'lib/courier/models/users/preference_update_or_create_topic_params.rb', line 30 optional :tenant_id, String, nil?: true |
#topic ⇒ Courier::Models::Users::PreferenceUpdateOrCreateTopicParams::Topic
24 |
# File 'lib/courier/models/users/preference_update_or_create_topic_params.rb', line 24 required :topic, -> { Courier::Users::PreferenceUpdateOrCreateTopicParams::Topic } |
#topic_id ⇒ String
19 |
# File 'lib/courier/models/users/preference_update_or_create_topic_params.rb', line 19 required :topic_id, String |
#user_id ⇒ String
14 |
# File 'lib/courier/models/users/preference_update_or_create_topic_params.rb', line 14 required :user_id, String |
Instance Method Details
#to_hash ⇒ { user_id: String, topic_id: String, topic: Courier::Users::PreferenceUpdateOrCreateTopicParams::Topic, tenant_id: String?, request_options: Courier::RequestOptions }
33 34 35 36 37 38 39 |
# File 'sig/courier/models/users/preference_update_or_create_topic_params.rbs', line 33
def to_hash: -> {
user_id: String,
topic_id: String,
topic: Courier::Users::PreferenceUpdateOrCreateTopicParams::Topic,
tenant_id: String?,
request_options: Courier::RequestOptions
}
|