Class: WhopSDK::Models::ForumPostUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::ForumPostUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/whop_sdk/models/forum_post_update_params.rb
Overview
Defined Under Namespace
Classes: Attachment
Instance Attribute Summary collapse
-
#attachments ⇒ Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>?
A replacement list of file attachments for this post, such as images or videos.
-
#content ⇒ String?
The updated body of the post in Markdown format.
- #id ⇒ String
-
#is_pinned ⇒ Boolean?
Whether this post should be pinned to the top of the forum.
-
#title ⇒ String?
The updated title of the post, displayed prominently at the top.
-
#visibility ⇒ Symbol, ...
The visibility types for forum posts.
Attributes included from Internal::Type::RequestParameters
Method Summary
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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
This class inherits a constructor from WhopSDK::Internal::Type::BaseModel
Instance Attribute Details
#attachments ⇒ Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>?
A replacement list of file attachments for this post, such as images or videos.
19 20 21 |
# File 'lib/whop_sdk/models/forum_post_update_params.rb', line 19 optional :attachments, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::ForumPostUpdateParams::Attachment] }, nil?: true |
#content ⇒ String?
The updated body of the post in Markdown format. For example, ‘Check out this update’. Hidden if the post is paywalled and the viewer has not purchased access.
29 |
# File 'lib/whop_sdk/models/forum_post_update_params.rb', line 29 optional :content, String, nil?: true |
#id ⇒ String
13 |
# File 'lib/whop_sdk/models/forum_post_update_params.rb', line 13 required :id, String |
#is_pinned ⇒ Boolean?
Whether this post should be pinned to the top of the forum. Only top-level posts can be pinned, not comments.
36 |
# File 'lib/whop_sdk/models/forum_post_update_params.rb', line 36 optional :is_pinned, WhopSDK::Internal::Type::Boolean, nil?: true |
#title ⇒ String?
The updated title of the post, displayed prominently at the top. Required for paywalled posts as it remains visible to non-purchasers.
43 |
# File 'lib/whop_sdk/models/forum_post_update_params.rb', line 43 optional :title, String, nil?: true |
#visibility ⇒ Symbol, ...
The visibility types for forum posts
49 |
# File 'lib/whop_sdk/models/forum_post_update_params.rb', line 49 optional :visibility, enum: -> { WhopSDK::ForumPostVisibilityType }, nil?: true |