Class: SiteCommentDrop

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

Overview

Represents a user-generated comment on a ForumPostDrop, CourseLessonDrop, etc.

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#approved? ⇒ Boolean

Returns:

  • (Boolean)

#attachments ⇒ Array<SimpleAttachmentDrop>

Returns:

#commenter ⇒ SiteMemberDrop

Returns:

#commenter_email ⇒ String

Returns:

  • (String)

#commenter_name ⇒ String

Returns:

  • (String)

#commenter_path ⇒ String

Returns:

  • (String)

#commenter_url ⇒ String

Returns:

  • (String)

#depth ⇒ Integer

Will be 1 if this is a reply to another SiteCommentDrop, 0 otherwise.

Returns:

  • (Integer)

#editable? ⇒ Boolean

Returns:

  • (Boolean)

#file_attachments ⇒ Array<SimpleAttachmentDrop>

Returns:

#id ⇒ Integer

Returns:

  • (Integer)

#image_attachments ⇒ Array<SimpleAttachmentDrop>

Returns:

#new? ⇒ Boolean

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

Returns:

  • (Boolean)

#parent_id ⇒ Integer

Refers to the SiteCommentDrop replied to, if this is a reply.

Returns:

  • (Integer)

#path ⇒ String

Returns:

  • (String)

#posted_at ⇒ DateTime

Returns:

  • (DateTime)

#reaction_count ⇒ Integer

Returns:

  • (Integer)

#render_reply_form? ⇒ Boolean

Returns true if a form should be rendered to reply to this comment.

Returns:

  • (Boolean)

#replied_to? ⇒ Boolean

Returns:

  • (Boolean)

#reply_count ⇒ Integer

Returns:

  • (Integer)

#show_badges? ⇒ Boolean

Returns:

  • (Boolean)

#url ⇒ String

Returns:

  • (String)