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)

#attachmentsArray<SimpleAttachmentDrop>

Returns:

#commenterSiteMemberDrop

Returns:

#commenter_emailString

Returns:

  • (String)

#commenter_nameString

Returns:

  • (String)

#commenter_pathString

Returns:

  • (String)

#commenter_urlString

Returns:

  • (String)

#depthInteger

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

Returns:

  • (Integer)

#editable?Boolean

Returns:

  • (Boolean)

#file_attachmentsArray<SimpleAttachmentDrop>

Returns:

#idInteger

Returns:

  • (Integer)

#image_attachmentsArray<SimpleAttachmentDrop>

Returns:

#new?Boolean

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

Returns:

  • (Boolean)

#parent_idInteger

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

Returns:

  • (Integer)

#pathString

Returns:

  • (String)

#posted_atDateTime

Returns:

  • (DateTime)

#reaction_countInteger

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_countInteger

Returns:

  • (Integer)

#show_badges?Boolean

Returns:

  • (Boolean)

#urlString

Returns:

  • (String)