class Copyleaks::SubmissionAuthor
Public Class Methods
new(id)
click to toggle source
@param [String] id A unique identifier that represents the author of the content. Make sure to use the same ID for the same author. Using this feature Copyleaks
can detect the author’s writing patterns and get better results.
# File lib/copyleaks/models/submissions/properties/author.rb, line 27 def initialize(id) @id = id end
Public Instance Methods
as_json(*_args)
click to toggle source
# File lib/copyleaks/models/submissions/properties/author.rb, line 31 def as_json(*_args) { id: @id }.select { |_k, v| !v.nil? } end
to_json(*options)
click to toggle source
# File lib/copyleaks/models/submissions/properties/author.rb, line 37 def to_json(*options) as_json(*options).to_json(*options) end