Class: PostForMe::Models::PlatformPost
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PostForMe::Models::PlatformPost
- Defined in:
- lib/post_for_me/models/platform_post.rb,
sig/post_for_me/models/platform_post.rbs
Defined Under Namespace
Modules: Metrics
Constant Summary collapse
- PostForMe =
Instance Attribute Summary collapse
-
#caption ⇒ String
Caption or text content of the post.
-
#external_account_id ⇒ String?
External account ID from the platform.
-
#external_post_id ⇒ String?
External post ID from the platform.
-
#media ⇒ Array<Array<Object>>
Array of media items attached to the post.
-
#metrics ⇒ PostForMe::Models::PlatformPost::Metrics::TikTokBusinessMetricsDto, ...
Post metrics and analytics data.
-
#platform ⇒ String
Social media platform name.
-
#platform_account_id ⇒ String
Platform-specific account ID.
-
#platform_data ⇒ PostForMe::Models::YoutubePostPlatformData?
Platform-specific data for the post.
-
#platform_post_id ⇒ String
Platform-specific post ID.
-
#platform_url ⇒ String
URL to the post on the platform.
-
#posted_at ⇒ Time?
Date the post was published.
-
#social_account_id ⇒ String
ID of the social account.
-
#social_post_id ⇒ String?
ID of the social post.
-
#social_post_result_id ⇒ String?
ID of the social post result.
Instance Method Summary collapse
- #initialize(caption:, media:, platform:, platform_account_id:, platform_post_id:, platform_url:, social_account_id:, external_account_id: nil, external_post_id: nil, metrics: nil, platform_data: nil, posted_at: nil, social_post_id: nil, social_post_result_id: 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:, media:, platform:, platform_account_id:, platform_post_id:, platform_url:, social_account_id:, external_account_id: nil, external_post_id: nil, metrics: nil, platform_data: nil, posted_at: nil, social_post_id: nil, social_post_result_id: nil) ⇒ Object
|
|
# File 'lib/post_for_me/models/platform_post.rb', line 91
|
Instance Attribute Details
#caption ⇒ String
Caption or text content of the post
10 |
# File 'lib/post_for_me/models/platform_post.rb', line 10 required :caption, String |
#external_account_id ⇒ String?
External account ID from the platform
53 |
# File 'lib/post_for_me/models/platform_post.rb', line 53 optional :external_account_id, String, nil?: true |
#external_post_id ⇒ String?
External post ID from the platform
59 |
# File 'lib/post_for_me/models/platform_post.rb', line 59 optional :external_post_id, String, nil?: true |
#media ⇒ Array<Array<Object>>
Array of media items attached to the post
16 17 |
# File 'lib/post_for_me/models/platform_post.rb', line 16 required :media, PostForMe::Internal::Type::ArrayOf[PostForMe::Internal::Type::ArrayOf[PostForMe::Internal::Type::Unknown]] |
#metrics ⇒ PostForMe::Models::PlatformPost::Metrics::TikTokBusinessMetricsDto, ...
Post metrics and analytics data
65 |
# File 'lib/post_for_me/models/platform_post.rb', line 65 optional :metrics, union: -> { PostForMe::PlatformPost::Metrics } |
#platform ⇒ String
Social media platform name
23 |
# File 'lib/post_for_me/models/platform_post.rb', line 23 required :platform, String |
#platform_account_id ⇒ String
Platform-specific account ID
29 |
# File 'lib/post_for_me/models/platform_post.rb', line 29 required :platform_account_id, String |
#platform_data ⇒ PostForMe::Models::YoutubePostPlatformData?
Platform-specific data for the post
71 |
# File 'lib/post_for_me/models/platform_post.rb', line 71 optional :platform_data, -> { PostForMe::YoutubePostPlatformData } |
#platform_post_id ⇒ String
Platform-specific post ID
35 |
# File 'lib/post_for_me/models/platform_post.rb', line 35 required :platform_post_id, String |
#platform_url ⇒ String
URL to the post on the platform
41 |
# File 'lib/post_for_me/models/platform_post.rb', line 41 required :platform_url, String |
#posted_at ⇒ Time?
Date the post was published
77 |
# File 'lib/post_for_me/models/platform_post.rb', line 77 optional :posted_at, Time |
#social_account_id ⇒ String
ID of the social account
47 |
# File 'lib/post_for_me/models/platform_post.rb', line 47 required :social_account_id, String |
#social_post_id ⇒ String?
ID of the social post
83 |
# File 'lib/post_for_me/models/platform_post.rb', line 83 optional :social_post_id, String, nil?: true |
#social_post_result_id ⇒ String?
ID of the social post result
89 |
# File 'lib/post_for_me/models/platform_post.rb', line 89 optional :social_post_result_id, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
77 |
# File 'sig/post_for_me/models/platform_post.rbs', line 77
def to_hash: -> {
|