vericite_api 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/lib/vericite_client/models/report_score_reponse.rb +25 -15
- data/lib/vericite_client/version.rb +1 -1
- data/spec/models/report_score_reponse_spec.rb +11 -2
- data/vericite_api.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d76903d0887080e35045163ad16adf014336635
|
4
|
+
data.tar.gz: b6b0719b85257c56b705eb39fb7c6c554f7ea2f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d841d737a893a71167f3f634e56c1d3f608455474bc4f01e024e5058937fb7649a5761b2c182502b813057fa9471eb6aa7b47973a3ec2ffe3d6456e3c1346fe0
|
7
|
+
data.tar.gz: 7d91c84e136bacb96f32a07f0ba7bce7f6d20f99ac9f9493c98396efafaac45df7f46342306e90b0444f9f86aa1bee6e15be92a93e2a94df508e3c74815a6622
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 VeriCite
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -14,18 +14,22 @@ module VeriCiteClient
|
|
14
14
|
|
15
15
|
attr_accessor :score
|
16
16
|
|
17
|
+
attr_accessor :preliminary
|
18
|
+
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
20
|
def self.attribute_map
|
19
21
|
{
|
20
|
-
|
22
|
+
|
21
23
|
:'user' => :'user',
|
22
|
-
|
24
|
+
|
23
25
|
:'assignment' => :'assignment',
|
24
|
-
|
26
|
+
|
25
27
|
:'external_content_id' => :'externalContentId',
|
26
|
-
|
27
|
-
:'score' => :'score'
|
28
|
-
|
28
|
+
|
29
|
+
:'score' => :'score',
|
30
|
+
|
31
|
+
:'preliminary' => :'preliminary'
|
32
|
+
|
29
33
|
}
|
30
34
|
end
|
31
35
|
|
@@ -35,8 +39,9 @@ module VeriCiteClient
|
|
35
39
|
:'user' => :'String',
|
36
40
|
:'assignment' => :'String',
|
37
41
|
:'external_content_id' => :'String',
|
38
|
-
:'score' => :'Integer'
|
39
|
-
|
42
|
+
:'score' => :'Integer',
|
43
|
+
:'preliminary' => :'BOOLEAN'
|
44
|
+
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -46,23 +51,27 @@ module VeriCiteClient
|
|
46
51
|
# convert string to symbol for hash key
|
47
52
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
48
53
|
|
49
|
-
|
54
|
+
|
50
55
|
if attributes[:'user']
|
51
56
|
self.user = attributes[:'user']
|
52
57
|
end
|
53
|
-
|
58
|
+
|
54
59
|
if attributes[:'assignment']
|
55
60
|
self.assignment = attributes[:'assignment']
|
56
61
|
end
|
57
|
-
|
62
|
+
|
58
63
|
if attributes[:'externalContentId']
|
59
64
|
self.external_content_id = attributes[:'externalContentId']
|
60
65
|
end
|
61
|
-
|
66
|
+
|
62
67
|
if attributes[:'score']
|
63
68
|
self.score = attributes[:'score']
|
64
69
|
end
|
65
|
-
|
70
|
+
|
71
|
+
if attributes.has_key?(:'preliminary')
|
72
|
+
self.preliminary = attributes[:'preliminary']
|
73
|
+
end
|
74
|
+
|
66
75
|
end
|
67
76
|
|
68
77
|
# Check equality by comparing each attribute.
|
@@ -72,7 +81,8 @@ module VeriCiteClient
|
|
72
81
|
user == o.user &&
|
73
82
|
assignment == o.assignment &&
|
74
83
|
external_content_id == o.external_content_id &&
|
75
|
-
score == o.score
|
84
|
+
score == o.score &&
|
85
|
+
preliminary == o.preliminary
|
76
86
|
end
|
77
87
|
|
78
88
|
# @see the `==` method
|
@@ -82,7 +92,7 @@ module VeriCiteClient
|
|
82
92
|
|
83
93
|
# Calculate hash code according to all attributes.
|
84
94
|
def hash
|
85
|
-
[user, assignment, external_content_id, score].hash
|
95
|
+
[user, assignment, external_content_id, score, preliminary].hash
|
86
96
|
end
|
87
97
|
|
88
98
|
# build the object from hash
|
@@ -18,7 +18,7 @@ describe 'ReportScoreReponse' do
|
|
18
18
|
|
19
19
|
describe 'test an instance of ReportScoreReponse' do
|
20
20
|
it 'should create an instact of ReportScoreReponse' do
|
21
|
-
@instance.should be_a(VeriCiteClient::ReportScoreReponse)
|
21
|
+
@instance.should be_a(VeriCiteClient::ReportScoreReponse)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
describe 'test attribute "user"' do
|
@@ -61,5 +61,14 @@ describe 'ReportScoreReponse' do
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
-
|
64
|
+
describe 'test attribute "preliminary"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here
|
67
|
+
# should be_a()
|
68
|
+
# should be_nil
|
69
|
+
# should ==
|
70
|
+
# should_not ==
|
71
|
+
end
|
72
|
+
end
|
65
73
|
|
74
|
+
end
|
data/vericite_api.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "vericite_api"
|
7
7
|
s.description = "VeriCite API GEM"
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.1.0"
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.authors = ["Bryan Holladay"]
|
11
11
|
s.email = ["bryan@vericite.com"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vericite_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Holladay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -177,6 +177,7 @@ executables: []
|
|
177
177
|
extensions: []
|
178
178
|
extra_rdoc_files: []
|
179
179
|
files:
|
180
|
+
- LICENSE
|
180
181
|
- README.md
|
181
182
|
- lib/vericite_client.rb
|
182
183
|
- lib/vericite_client/api/default_api.rb
|