class Copyleaks::SubmissionScanningCopyleaksDB
Public Class Methods
Source
# File lib/copyleaks/models/submissions/properties/copyleaks_db.rb, line 28 def initialize(includeMySubmissions, includeOthersSubmissions) @includeMySubmissions = includeMySubmissions @includeOthersSubmissions = includeOthersSubmissions end
@param [Boolean] includeMySubmissions When set to true: Copyleaks
will also compare against content which was uploaded by YOU to the Copyleaks
internal database. If true, it will also index the scan in the Copyleaks
internal database. @param [Boolean] includeOthersSubmissions When set to true: Copyleaks
will also compare against content which was uploaded by OTHERS to the Copyleaks
internal database. If true, it will also index the scan in the Copyleaks
internal database.
Public Instance Methods
Source
# File lib/copyleaks/models/submissions/properties/copyleaks_db.rb, line 33 def as_json(*_args) { includeMySubmissions: @includeMySubmissions, includeOthersSubmissions: @includeOthersSubmissions }.select { |_k, v| !v.nil? } end
Source
# File lib/copyleaks/models/submissions/properties/copyleaks_db.rb, line 40 def to_json(*options) as_json(*options).to_json(*options) end