Class: SiteCommentDrop
- Inherits:
-
Liquid::Simplero::Drop
- Object
- Liquid::Drop
- Liquid::Simplero::Drop
- SiteCommentDrop
- 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
- #approved? ⇒ Boolean
- #attachments ⇒ Array<SimpleAttachmentDrop>
- #commenter ⇒ SiteMemberDrop
- #commenter_email ⇒ String
- #commenter_name ⇒ String
- #commenter_path ⇒ String
- #commenter_url ⇒ String
-
#depth ⇒ Integer
Will be 1 if this is a reply to another SiteCommentDrop, 0 otherwise.
- #editable? ⇒ Boolean
- #file_attachments ⇒ Array<SimpleAttachmentDrop>
- #id ⇒ Integer
- #image_attachments ⇒ Array<SimpleAttachmentDrop>
-
#new? ⇒ Boolean
Returns true if this has not been read by the current SiteMemberDrop.
-
#parent_id ⇒ Integer
Refers to the SiteCommentDrop replied to, if this is a reply.
- #path ⇒ String
- #posted_at ⇒ DateTime
- #reaction_count ⇒ Integer
-
#render_reply_form? ⇒ Boolean
Returns true if a form should be rendered to reply to this comment.
- #replied_to? ⇒ Boolean
- #reply_count ⇒ Integer
- #show_badges? ⇒ Boolean
- #url ⇒ String
Methods inherited from Liquid::Simplero::Drop
Instance Method Details
#approved? ⇒ Boolean
#attachments ⇒ Array<SimpleAttachmentDrop>
#commenter ⇒ SiteMemberDrop
#commenter_email ⇒ String
#commenter_name ⇒ String
#commenter_path ⇒ String
#commenter_url ⇒ String
#depth ⇒ Integer
Will be 1 if this is a reply to another SiteCommentDrop, 0 otherwise.
#editable? ⇒ Boolean
#file_attachments ⇒ Array<SimpleAttachmentDrop>
#id ⇒ Integer
#image_attachments ⇒ Array<SimpleAttachmentDrop>
#new? ⇒ Boolean
Returns true if this has not been read by the current SiteMemberDrop.
#parent_id ⇒ Integer
Refers to the SiteCommentDrop replied to, if this is a reply.
#path ⇒ String
#posted_at ⇒ DateTime
#reaction_count ⇒ Integer
#render_reply_form? ⇒ Boolean
Returns true if a form should be rendered to reply to this comment.