module Plagiarism
Attributes
api_key[RW]
response_format[R]
test_mode[RW]
username[RW]
Public Class Methods
balance()
click to toggle source
Return the current balance (in cents) in your Copyscape account
# File lib/plagiarism.rb, line 27 def balance Balance.amount end
configure() { |self| ... }
click to toggle source
# File lib/plagiarism.rb, line 19 def configure yield self self end
credits()
click to toggle source
Return the number remaining credits in your Copyscape account
# File lib/plagiarism.rb, line 34 def credits Balance.credits end
text_search(text, options = {})
click to toggle source
Search
for copies of some text
Options:
encoding: UTF-8, ISO-8859-1, etc. (default is UTF-8) scope: public, private, full (default is public) full_comparisons: number of full-text comparisons to request on matching results (default is 0, maximum is 10).
# File lib/plagiarism.rb, line 53 def text_search(text, options = {}) TextSearch.new(text, options) end
url_search(url, options = {})
click to toggle source
Search
for copies of a web page
Options:
scope: public, private, full (default is public) full_comparisons: number of full-text comparisons to request on matching results (default is 0, maximum is 10).
# File lib/plagiarism.rb, line 69 def url_search(url, options = {}) URLSearch.new(url, options) end