Class: PostForMe::Models::CreateSocialPostPreview

Inherits:
Internal::Type::BaseModel show all
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

SocialPostPreviewCreateParams

Defined Under Namespace

Classes: PreviewSocialAccount

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

#initializeObject



23
# File 'sig/post_for_me/models/create_social_post_preview.rbs', line 23

def initialize: (

Instance Attribute Details

#account_configurationsArray<PostForMe::Models::AccountConfiguration>?

Account-specific configurations for the post

Parameters:

Returns:



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

#captionString

Caption text for the post

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/post_for_me/models/create_social_post_preview.rb', line 10

required :caption, String

#mediaArray<PostForMe::Models::SocialPostMedia>?

Array of media URLs associated with the post

Parameters:

Returns:



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_configurationsPostForMe::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_accountsArray<PostForMe::Models::CreateSocialPostPreview::PreviewSocialAccount>

Array of social accounts. Can preview non connected accounts, just specify a random ID

Parameters:

  • value (::Array[PostForMe::CreateSocialPostPreview::PreviewSocialAccount])

Returns:



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{

Returns:

  • ({)


31
# File 'sig/post_for_me/models/create_social_post_preview.rbs', line 31

def to_hash: -> {