Class: Courier::Models::Users::PreferenceRetrieveTopicResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::Users::PreferenceRetrieveTopicResponse
- Defined in:
- lib/courier/models/users/preference_retrieve_topic_response.rb,
sig/courier/models/users/preference_retrieve_topic_response.rbs
Overview
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(topic:) ⇒ PreferenceRetrieveTopicResponse
constructor
A new instance of PreferenceRetrieveTopicResponse.
- #to_hash ⇒ { topic: Courier::Users::TopicPreference }
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(topic:) ⇒ PreferenceRetrieveTopicResponse
Returns a new instance of PreferenceRetrieveTopicResponse.
|
|
# File 'lib/courier/models/users/preference_retrieve_topic_response.rb', line 13
|
Instance Attribute Details
#topic ⇒ Courier::Models::Users::TopicPreference
11 |
# File 'lib/courier/models/users/preference_retrieve_topic_response.rb', line 11 required :topic, -> { Courier::Users::TopicPreference } |
Instance Method Details
#to_hash ⇒ { topic: Courier::Users::TopicPreference }
12 |
# File 'sig/courier/models/users/preference_retrieve_topic_response.rbs', line 12
def to_hash: -> { topic: Courier::Users::TopicPreference }
|