Class: ForumPostDrop

Inherits:
Liquid::Simplero::Drop show all
Includes:
CommentableDropConcerns, NotificationSettingProvidingDropConcern, ReactableDropConcerns, ShareableDropConcerns, UserRichContentConcerns
Defined in:
app/drops/forum_post_drop.rb

Overview

ForumPostDrop represents a forum post. It's available as post on a forum post page, and as a collection on ForumCategoryDrop and ForumDrop.

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#allow_comment_attachments? ⇒ Boolean

Returns:

  • (Boolean)

#attachments ⇒ Array<SimpleAttachmentDrop>

Returns:

#category ⇒ ForumCategoryDrop

Returns:

#category_has_other_new_posts? ⇒ Boolean

Returns true if this ForumPostDrop's ForumCategoryDrop has new (unread) posts other than this one.

Returns:

  • (Boolean)

#file_attachments ⇒ Array<SimpleAttachmentDrop>

Returns:

#id ⇒ Integer

Returns:

  • (Integer)

#image_attachments ⇒ Array<SimpleAttachmentDrop>

Returns:

#new? ⇒ Boolean

Returns true if this post has not been viewed by the current SiteMemberDrop.

Returns:

  • (Boolean)

#notification_setting ⇒ NotificationSettingDrop

#path ⇒ String

Returns:

  • (String)

#pinned? ⇒ Boolean

Returns:

  • (Boolean)

#pinned_to_category? ⇒ Boolean

Returns:

  • (Boolean)

#pinned_to_front_page? ⇒ Boolean

Returns:

  • (Boolean)

#posted_at ⇒ DateTime

Returns:

  • (DateTime)

#poster ⇒ SiteMemberDrop

Returns:

#title ⇒ String

Returns:

  • (String)

#url ⇒ String

Returns:

  • (String)