plagiarism-checker 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/copyleaks_api/Models/ResultRecord.rb +56 -54
- data/lib/copyleaks_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc69af416df5c9fdcb6d97788f556ad594c301bb
|
4
|
+
data.tar.gz: 92d7e25795452ed9a1241fdedd10e47e3c99b502
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4bd6b1e0658ee937925892c82b8fe988826f63e84879bca2a4d353889204cb218eede696765db27b4566fc4eac1837d89c60086ecd6aafa78dee07b72a32daa
|
7
|
+
data.tar.gz: 6b1d88d3a9aa67ff33567156d8da0c21b7da34b96bdc1be983094166cf64ea2517d2af3fa8a868e569be96da3752a9c22af89a6e1ff48cd496a522158a8c21ac
|
@@ -1,58 +1,60 @@
|
|
1
1
|
module CopyleaksApi
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
2
|
+
module Models
|
3
|
+
class ResultRecord
|
4
|
+
def initialize(response)
|
5
|
+
@URL = response['URL']
|
6
|
+
@Percents = response['Percents']
|
7
|
+
@NumberOfCopiedWords = response['NumberOfCopiedWords']
|
8
|
+
@CachedVersion = response['CachedVersion']
|
9
|
+
@Title = response['Title']
|
10
|
+
@Introduction = response['Introduction']
|
11
|
+
@ComparisonReport = response['ComparisonReport']
|
12
|
+
@EmbededComparison = response['EmbededComparison']
|
13
|
+
end
|
14
|
+
|
15
|
+
def get_url
|
16
|
+
@URL
|
17
|
+
end
|
18
|
+
|
19
|
+
def get_percents
|
20
|
+
@Percents
|
21
|
+
end
|
22
|
+
|
23
|
+
def get_number_of_copied_words
|
24
|
+
@NumberOfCopiedWords
|
25
|
+
end
|
26
|
+
|
27
|
+
def get_cached_version
|
28
|
+
@CachedVersion
|
29
|
+
end
|
30
|
+
|
31
|
+
def get_title
|
32
|
+
@Title
|
33
|
+
end
|
34
|
+
|
35
|
+
def get_introduction
|
36
|
+
@Introduction
|
37
|
+
end
|
38
|
+
|
39
|
+
def get_comparison_report
|
40
|
+
@ComparisonReport
|
41
|
+
end
|
42
|
+
|
43
|
+
def get_embeded_comparison
|
44
|
+
@EmbededComparison
|
45
|
+
end
|
46
|
+
|
47
|
+
def to_s
|
48
|
+
puts "----------------------------------------------------------------"
|
49
|
+
puts "Title: #{@Title}"
|
50
|
+
puts "Introduction: #{@Introduction}"
|
51
|
+
puts "Url: #{@URL}"
|
52
|
+
puts "Percents: #{@Percents}%"
|
53
|
+
puts "NumberOfCopiedWords: #{@NumberOfCopiedWords}"
|
54
|
+
puts "CachedVersion: #{@CachedVersion}"
|
55
|
+
puts "ComparisonReport: #{@ComparisonReport}"
|
56
|
+
puts "EmbededComparison: #{@EmbededComparison}"
|
57
|
+
end
|
56
58
|
end
|
57
59
|
end
|
58
60
|
end
|