Class: PostForMe::Models::SocialPostPreview
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PostForMe::Models::SocialPostPreview
- Defined in:
- lib/post_for_me/models/social_post_preview.rb,
sig/post_for_me/models/social_post_preview.rbs
Instance Attribute Summary collapse
-
#caption ⇒ String
Caption text for the post.
-
#configuration ⇒ Object?
Additional configuration for this platform.
-
#media ⇒ Array<PostForMe::Models::SocialPostMedia>?
Array of media URLs associated with the post.
-
#platform ⇒ String
Platform of the post.
-
#social_account_id ⇒ String
Id of the social account.
-
#social_account_profile_picture_url ⇒ Object?
Url of the social account profile picture.
-
#social_account_username ⇒ Object?
Username of the social account.
Instance Method Summary collapse
- #initialize(caption:, platform:, social_account_id:, configuration: nil, media: nil, social_account_profile_picture_url: nil, social_account_username: 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:, platform:, social_account_id:, configuration: nil, media: nil, social_account_profile_picture_url: nil, social_account_username: nil) ⇒ Object
|
|
# File 'lib/post_for_me/models/social_post_preview.rb', line 48
|
Instance Attribute Details
#caption ⇒ String
Caption text for the post
10 |
# File 'lib/post_for_me/models/social_post_preview.rb', line 10 required :caption, String |
#configuration ⇒ Object?
Additional configuration for this platform
28 |
# File 'lib/post_for_me/models/social_post_preview.rb', line 28 optional :configuration, PostForMe::Internal::Type::Unknown |
#media ⇒ Array<PostForMe::Models::SocialPostMedia>?
Array of media URLs associated with the post
34 |
# File 'lib/post_for_me/models/social_post_preview.rb', line 34 optional :media, -> { PostForMe::Internal::Type::ArrayOf[PostForMe::SocialPostMedia] }, nil?: true |
#platform ⇒ String
Platform of the post
16 |
# File 'lib/post_for_me/models/social_post_preview.rb', line 16 required :platform, String |
#social_account_id ⇒ String
Id of the social account
22 |
# File 'lib/post_for_me/models/social_post_preview.rb', line 22 required :social_account_id, String |
#social_account_profile_picture_url ⇒ Object?
Url of the social account profile picture
40 |
# File 'lib/post_for_me/models/social_post_preview.rb', line 40 optional :social_account_profile_picture_url, PostForMe::Internal::Type::Unknown |
#social_account_username ⇒ Object?
Username of the social account
46 |
# File 'lib/post_for_me/models/social_post_preview.rb', line 46 optional :social_account_username, PostForMe::Internal::Type::Unknown |
Instance Method Details
#to_hash ⇒ {
45 |
# File 'sig/post_for_me/models/social_post_preview.rbs', line 45
def to_hash: -> {
|