Class: Courier::Models::Users::PreferenceRetrieveTopicResponse

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

Overview

See Also:

  • Courier::Resources::Users::Preferences#retrieve_topic

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(topic:) ⇒ PreferenceRetrieveTopicResponse

Returns a new instance of PreferenceRetrieveTopicResponse.

Parameters:



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

Instance Attribute Details

#topicCourier::Models::Users::TopicPreference

Parameters:

  • value (Courier::Users::TopicPreference)

Returns:



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 }

Returns:

  • ({ topic: Courier::Users::TopicPreference })


12
# File 'sig/courier/models/users/preference_retrieve_topic_response.rbs', line 12

def to_hash: -> { topic: Courier::Users::TopicPreference }