Class: PostForMe::Models::TwitterConfigurationDto
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PostForMe::Models::TwitterConfigurationDto
- Defined in:
- lib/post_for_me/models/twitter_configuration_dto.rb,
sig/post_for_me/models/twitter_configuration_dto.rbs
Defined Under Namespace
Modules: ReplySettings
Instance Attribute Summary collapse
-
#caption ⇒ Object?
Overrides the
captionfrom the post. -
#community_id ⇒ String?
Id of the community to post to.
-
#media ⇒ Array<PostForMe::Models::SocialPostMedia>?
Overrides the
mediafrom the post. -
#poll ⇒ PostForMe::Models::TwitterPoll?
Poll options for the tweet.
-
#quote_tweet_id ⇒ String?
Id of the tweet you want to quote.
-
#reply_settings ⇒ Symbol, ...
Who can reply to the tweet.
Instance Method Summary collapse
- #initialize(caption: nil, community_id: nil, media: nil, poll: nil, quote_tweet_id: nil, reply_settings: nil) ⇒ Object constructor
- #to_hash ⇒ {
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(caption: nil, community_id: nil, media: nil, poll: nil, quote_tweet_id: nil, reply_settings: nil) ⇒ Object
|
|
# File 'lib/post_for_me/models/twitter_configuration_dto.rb', line 42
|
Instance Attribute Details
#caption ⇒ Object?
Overrides the caption from the post
10 |
# File 'lib/post_for_me/models/twitter_configuration_dto.rb', line 10 optional :caption, PostForMe::Internal::Type::Unknown, nil?: true |
#community_id ⇒ String?
Id of the community to post to
16 |
# File 'lib/post_for_me/models/twitter_configuration_dto.rb', line 16 optional :community_id, String |
#media ⇒ Array<PostForMe::Models::SocialPostMedia>?
Overrides the media from the post
22 |
# File 'lib/post_for_me/models/twitter_configuration_dto.rb', line 22 optional :media, -> { PostForMe::Internal::Type::ArrayOf[PostForMe::SocialPostMedia] }, nil?: true |
#poll ⇒ PostForMe::Models::TwitterPoll?
Poll options for the tweet
28 |
# File 'lib/post_for_me/models/twitter_configuration_dto.rb', line 28 optional :poll, -> { PostForMe::TwitterPoll } |
#quote_tweet_id ⇒ String?
Id of the tweet you want to quote
34 |
# File 'lib/post_for_me/models/twitter_configuration_dto.rb', line 34 optional :quote_tweet_id, String |
#reply_settings ⇒ Symbol, ...
Who can reply to the tweet
40 |
# File 'lib/post_for_me/models/twitter_configuration_dto.rb', line 40 optional :reply_settings, enum: -> { PostForMe::TwitterConfigurationDto::ReplySettings }, nil?: true |
Instance Method Details
#to_hash ⇒ {
41 |
# File 'sig/post_for_me/models/twitter_configuration_dto.rbs', line 41
def to_hash: -> {
|