quiz_api_client 2.8.0 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8e9117e1b2cc22ef6f530c9ffdc08bc0660c068a51b808b53db9e6cb7e4bd53
|
4
|
+
data.tar.gz: 880060748ab051cf51ea29e7b568c30ae49aac9577bb81c7c6eb55aba2e74f23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5312c786cdd9e0e5a30f5adc487989fdd7fb65d4e3a6dc8c2dc3e44eb150bbdf9e692722deff4716637b88d00c13dc8fabb7b3e196c3518b431341f62fe4d9d
|
7
|
+
data.tar.gz: 3900c41dd19f1c7991f213629d771df77073ab3094e9a7209e0bfd150b40ecff4ac2d7ce822f7c3f3a16b150295a6c68921ba378a725598f3e81e0f74e744fb6
|
@@ -1,5 +1,14 @@
|
|
1
1
|
module QuizApiClient::Services
|
2
2
|
class QuizSessionsService < BaseApiService
|
3
|
+
def list(params:, token: nil)
|
4
|
+
raise 'Quiz Id Required' unless params && params[:quiz_id]
|
5
|
+
raise 'Quiz Session Ids Required' unless params && params[:ids]
|
6
|
+
client(token: token).get(
|
7
|
+
"/api/quizzes/#{params[:quiz_id]}/quiz_sessions",
|
8
|
+
query: params[:ids].to_query('ids')
|
9
|
+
)
|
10
|
+
end
|
11
|
+
|
3
12
|
def create(params:, token: nil)
|
4
13
|
raise 'Quiz Id Required' unless params && params[:quiz_id]
|
5
14
|
post_to_quiz_api(params: params, token: token)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quiz_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wang
|
@@ -19,7 +19,7 @@ authors:
|
|
19
19
|
autorequire:
|
20
20
|
bindir: exe
|
21
21
|
cert_chain: []
|
22
|
-
date: 2019-
|
22
|
+
date: 2019-03-05 00:00:00.000000000 Z
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
25
|
name: httparty
|
@@ -204,7 +204,6 @@ files:
|
|
204
204
|
- ".gitignore"
|
205
205
|
- ".rspec"
|
206
206
|
- ".rubocop.yml"
|
207
|
-
- ".vscode/settings.json"
|
208
207
|
- Dockerfile
|
209
208
|
- Dockerfile.contracts
|
210
209
|
- Gemfile
|
@@ -259,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
258
|
version: '0'
|
260
259
|
requirements: []
|
261
260
|
rubyforge_project:
|
262
|
-
rubygems_version: 2.7.
|
261
|
+
rubygems_version: 2.7.8
|
263
262
|
signing_key:
|
264
263
|
specification_version: 4
|
265
264
|
summary: Ruby client for quiz_api
|
data/.vscode/settings.json
DELETED