class Crm::Activity::Comment

Comment represents a comment of an {Activity Activity}, for example a single comment of a support case discussion. @api public

Public Class Methods

new(raw_comment) click to toggle source
# File lib/crm/activity.rb, line 76
def initialize(raw_comment)
  comment = raw_comment.dup
  comment['attachments'] = raw_comment['attachments'].map{ |attachment_id|
    Attachment.new(attachment_id)
  }
  super(comment)
end

Public Instance Methods

published?() click to toggle source

@!attribute [r] published? Returns whether the comment is published. @return [Boolean] @api public

# File lib/crm/activity.rb, line 108
def published?
  published
end