Sha256: fe74becfff5fa057826e19edd94bff46e9daccf180660a6683f9a60beca6599d
Contents?: true
Size: 1.39 KB
Versions: 1
Compression:
Stored size: 1.39 KB
Contents
module CopyleaksApi class ResultRecord def initialize(response) @URL = response['URL'] @Percents = response['Percents'] @NumberOfCopiedWords = response['NumberOfCopiedWords'] @CachedVersion = response['CachedVersion'] @Title = response['Title'] @Introduction = response['Introduction'] @ComparisonReport = response['ComparisonReport'] @EmbededComparison = response['EmbededComparison'] end def get_url @URL end def get_percents @Percents end def get_number_of_copied_words @NumberOfCopiedWords end def get_cached_version @CachedVersion end def get_title @Title end def get_introduction @Introduction end def get_comparison_report @ComparisonReport end def get_embeded_comparison @EmbededComparison end def to_s puts "----------------------------------------------------------------" puts "Title: #{@Title}" puts "Introduction: #{@Introduction}" puts "Url: #{@URL}" puts "Percents: #{@Percents}%" puts "NumberOfCopiedWords: #{@NumberOfCopiedWords}" puts "CachedVersion: #{@CachedVersion}" puts "ComparisonReport: #{@ComparisonReport}" puts "EmbededComparison: #{@EmbededComparison}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plagiarism-checker-2.0.0 | lib/copyleaks_api/Models/ResultRecord.rb |