class Copyleaks::SubmissionExcludeCode

Public Class Methods

new( comments = false ) click to toggle source

@param [Boolean] Exclude comments from the scan.

# File lib/copyleaks/models/submissions/properties/exclude_code.rb, line 28
def initialize(
  comments = false
)
  @comments = comments
end

Public Instance Methods

as_json(*_args) click to toggle source
# File lib/copyleaks/models/submissions/properties/exclude_code.rb, line 34
def as_json(*_args)
  {
      comments: @comments,
  }.select { |_k, v| !v.nil? }
end
to_json(*options) click to toggle source
# File lib/copyleaks/models/submissions/properties/exclude_code.rb, line 40
def to_json(*options)
  as_json(*options).to_json(*options)
end