class Dradis::Plugins::Projects::Export::V2::Template

Constants

VERSION

Protected Instance Methods

build_comments_for(builder, commentable) click to toggle source
# File lib/dradis/plugins/projects/export/v2/template.rb, line 7
def build_comments_for(builder, commentable)
  builder.comments do |comments_builder|
    commentable.comments.each do |comment|
      comments_builder.comment do |comment_builder|
        comment_builder.content do
          comment_builder.cdata!(comment.content)
        end
        comment_builder.author(comment.user&.email)
        comment_builder.created_at(comment.created_at.to_i)
      end
    end
  end
end