Class: WhopSDK::Models::SocialAccountPost
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::SocialAccountPost
- Defined in:
- lib/whop_sdk/models/social_account_post.rb,
sig/whop_sdk/models/social_account_post.rbs
Defined Under Namespace
Modules: CallToAction
Instance Attribute Summary collapse
-
#call_to_action ⇒ Symbol, ...
The post's call-to-action button, for example shop_now (Facebook only; null for Instagram).
-
#destination_url ⇒ String?
The URL the post's call-to-action drives to (Facebook only; null for Instagram).
-
#id ⇒ String
The platform's own identifier for the post or media.
-
#media_url ⇒ String?
The URL of the post's media — the image for image posts, the playable video file for video posts.
-
#thumbnail_url ⇒ String?
Poster image for video posts; null for image posts, where media_url is already the image.
Instance Method Summary collapse
-
#initialize(id:, call_to_action:, destination_url:, media_url:, thumbnail_url:) ⇒ Object
constructor
Some parameter documentations has been truncated, see SocialAccountPost for more details.
- #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:, call_to_action:, destination_url:, media_url:, thumbnail_url:) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::SocialAccountPost for more details.
|
|
# File 'lib/whop_sdk/models/social_account_post.rb', line 41
|
Instance Attribute Details
#call_to_action ⇒ Symbol, ...
The post's call-to-action button, for example shop_now (Facebook only; null for Instagram).
18 |
# File 'lib/whop_sdk/models/social_account_post.rb', line 18 required :call_to_action, enum: -> { WhopSDK::SocialAccountPost::CallToAction }, nil?: true |
#destination_url ⇒ String?
The URL the post's call-to-action drives to (Facebook only; null for Instagram).
24 |
# File 'lib/whop_sdk/models/social_account_post.rb', line 24 required :destination_url, String, nil?: true |
#id ⇒ String
The platform's own identifier for the post or media. Use it to reference the post on an ad.
11 |
# File 'lib/whop_sdk/models/social_account_post.rb', line 11 required :id, String |
#media_url ⇒ String?
The URL of the post's media — the image for image posts, the playable video file for video posts. Meta signs these and they expire after roughly 24 hours, so don't store them.
32 |
# File 'lib/whop_sdk/models/social_account_post.rb', line 32 required :media_url, String, nil?: true |
#thumbnail_url ⇒ String?
Poster image for video posts; null for image posts, where media_url is already the image. Signed and short-lived like media_url.
39 |
# File 'lib/whop_sdk/models/social_account_post.rb', line 39 required :thumbnail_url, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
31 |
# File 'sig/whop_sdk/models/social_account_post.rbs', line 31
def to_hash: -> {
|