class Copyleaks::SubmissionPDF
Public Class Methods
Source
# File lib/copyleaks/models/submissions/properties/pdf_properties.rb, line 33 def initialize( create, title, largeLogo, rtl, version = nil, colors = nil ) if !colors.nil? && !colors.instance_of?(SubmissionPdfColors) raise 'Copyleaks::SubmissionPDF - colors - colors must be of type SubmissionPdfColors' end @create = create @title = title @largeLogo = largeLogo @rtl = rtl @version = version @colors = colors end
@param [Boolean] create Add a request to generate a customizable export of the scan report, in a pdf format. Set to true in order to generate a pdf report for this scan. @param [String] title Customize the title for the PDF report. @param [String] largeLogo Customize the logo image in the PDF report. @param [Boolean] rtl When set to true the text in the report will be aligned from right to left. @param [SubmissionPdfVersion] verion - PDF version to generate. @param [SubmissionPdfColors] colors - Customizable colors.
Public Instance Methods
Source
# File lib/copyleaks/models/submissions/properties/pdf_properties.rb, line 54 def as_json(*_args) { create: @create, title: @title, largeLogo: @largeLogo, rtl: @rtl, version: @version, colors: @colors }.select { |_k, v| !v.nil? } end
Source
# File lib/copyleaks/models/submissions/properties/pdf_properties.rb, line 65 def to_json(*options) as_json(*options).to_json(*options) end