Class: PostForMe::Models::CreateSocialPostPreview
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PostForMe::Models::CreateSocialPostPreview
- Defined in:
- lib/post_for_me/models/create_social_post_preview.rb,
sig/post_for_me/models/create_social_post_preview.rbs
Direct Known Subclasses
Defined Under Namespace
Classes: PreviewSocialAccount
Instance Attribute Summary collapse
-
#account_configurations ⇒ Array<PostForMe::Models::AccountConfiguration>?
Account-specific configurations for the post.
-
#caption ⇒ String
Caption text for the post.
-
#media ⇒ Array<PostForMe::Models::SocialPostMedia>?
Array of media URLs associated with the post.
-
#platform_configurations ⇒ PostForMe::Models::PlatformConfigurationsDto?
Platform-specific configurations for the post.
-
#preview_social_accounts ⇒ Array<PostForMe::Models::CreateSocialPostPreview::PreviewSocialAccount>
Array of social accounts.
Instance Method Summary collapse
- #initialize ⇒ 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 ⇒ Object
23 |
# File 'sig/post_for_me/models/create_social_post_preview.rbs', line 23
def initialize: (
|
Instance Attribute Details
#account_configurations ⇒ Array<PostForMe::Models::AccountConfiguration>?
Account-specific configurations for the post
24 25 26 |
# File 'lib/post_for_me/models/create_social_post_preview.rb', line 24 optional :account_configurations, -> { PostForMe::Internal::Type::ArrayOf[PostForMe::AccountConfiguration] }, nil?: true |
#caption ⇒ String
Caption text for the post
10 |
# File 'lib/post_for_me/models/create_social_post_preview.rb', line 10 required :caption, String |
#media ⇒ Array<PostForMe::Models::SocialPostMedia>?
Array of media URLs associated with the post
32 |
# File 'lib/post_for_me/models/create_social_post_preview.rb', line 32 optional :media, -> { PostForMe::Internal::Type::ArrayOf[PostForMe::SocialPostMedia] }, nil?: true |
#platform_configurations ⇒ PostForMe::Models::PlatformConfigurationsDto?
Platform-specific configurations for the post
38 |
# File 'lib/post_for_me/models/create_social_post_preview.rb', line 38 optional :platform_configurations, -> { PostForMe::PlatformConfigurationsDto }, nil?: true |
#preview_social_accounts ⇒ Array<PostForMe::Models::CreateSocialPostPreview::PreviewSocialAccount>
Array of social accounts. Can preview non connected accounts, just specify a random ID
17 18 |
# File 'lib/post_for_me/models/create_social_post_preview.rb', line 17 required :preview_social_accounts, -> { PostForMe::Internal::Type::ArrayOf[PostForMe::CreateSocialPostPreview::PreviewSocialAccount] } |
Instance Method Details
#to_hash ⇒ {
31 |
# File 'sig/post_for_me/models/create_social_post_preview.rbs', line 31
def to_hash: -> {
|