Class: PostForMe::Models::SocialPost
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PostForMe::Models::SocialPost
- Defined in:
- lib/post_for_me/models/social_post.rb,
sig/post_for_me/models/social_post.rbs
Overview
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
-
#account_configurations ⇒ Array<PostForMe::Models::AccountConfiguration>?
Account-specific configurations for the post.
-
#caption ⇒ String
Caption text for the post.
-
#created_at ⇒ String
Timestamp when the post was created.
-
#external_id ⇒ String?
Provided unique identifier of the post.
-
#id ⇒ String
Unique identifier of the post.
-
#media ⇒ Array<PostForMe::Models::SocialPostMedia>?
Array of media associated with the post.
-
#platform_configurations ⇒ PostForMe::Models::PlatformConfigurationsDto?
Platform-specific configurations for the post.
-
#scheduled_at ⇒ String?
Scheduled date and time for the post.
-
#social_accounts ⇒ Array<PostForMe::Models::SocialAccount>
Array of social account IDs for posting.
-
#status ⇒ Symbol, PostForMe::Models::SocialPost::Status
Current status of the post: draft, processed, scheduled, or processing.
-
#updated_at ⇒ String
Timestamp when the post was last updated.
Instance Method Summary collapse
- #initialize(id:, account_configurations:, caption:, created_at:, external_id:, media:, platform_configurations:, scheduled_at:, social_accounts:, status:, updated_at:) ⇒ 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(id:, account_configurations:, caption:, created_at:, external_id:, media:, platform_configurations:, scheduled_at:, social_accounts:, status:, updated_at:) ⇒ Object
|
|
# File 'lib/post_for_me/models/social_post.rb', line 75
|
Instance Attribute Details
#account_configurations ⇒ Array<PostForMe::Models::AccountConfiguration>?
Account-specific configurations for the post
17 18 19 |
# File 'lib/post_for_me/models/social_post.rb', line 17 required :account_configurations, -> { PostForMe::Internal::Type::ArrayOf[PostForMe::AccountConfiguration] }, nil?: true |
#caption ⇒ String
Caption text for the post
25 |
# File 'lib/post_for_me/models/social_post.rb', line 25 required :caption, String |
#created_at ⇒ String
Timestamp when the post was created
31 |
# File 'lib/post_for_me/models/social_post.rb', line 31 required :created_at, String |
#external_id ⇒ String?
Provided unique identifier of the post
37 |
# File 'lib/post_for_me/models/social_post.rb', line 37 required :external_id, String, nil?: true |
#id ⇒ String
Unique identifier of the post
11 |
# File 'lib/post_for_me/models/social_post.rb', line 11 required :id, String |
#media ⇒ Array<PostForMe::Models::SocialPostMedia>?
Array of media associated with the post
43 |
# File 'lib/post_for_me/models/social_post.rb', line 43 required :media, -> { PostForMe::Internal::Type::ArrayOf[PostForMe::SocialPostMedia] }, nil?: true |
#platform_configurations ⇒ PostForMe::Models::PlatformConfigurationsDto?
Platform-specific configurations for the post
49 |
# File 'lib/post_for_me/models/social_post.rb', line 49 required :platform_configurations, -> { PostForMe::PlatformConfigurationsDto }, nil?: true |
#scheduled_at ⇒ String?
Scheduled date and time for the post
55 |
# File 'lib/post_for_me/models/social_post.rb', line 55 required :scheduled_at, String, nil?: true |
#social_accounts ⇒ Array<PostForMe::Models::SocialAccount>
Array of social account IDs for posting
61 |
# File 'lib/post_for_me/models/social_post.rb', line 61 required :social_accounts, -> { PostForMe::Internal::Type::ArrayOf[PostForMe::SocialAccount] } |
#status ⇒ Symbol, PostForMe::Models::SocialPost::Status
Current status of the post: draft, processed, scheduled, or processing
67 |
# File 'lib/post_for_me/models/social_post.rb', line 67 required :status, enum: -> { PostForMe::SocialPost::Status } |
#updated_at ⇒ String
Timestamp when the post was last updated
73 |
# File 'lib/post_for_me/models/social_post.rb', line 73 required :updated_at, String |
Instance Method Details
#to_hash ⇒ {
55 |
# File 'sig/post_for_me/models/social_post.rbs', line 55
def to_hash: -> {
|