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: 61e96c9fd212a0861aa5c4a0230707b3c977c74e805d64eb8010bc2d3db7e924
4
- data.tar.gz: 37aab14279eaea2993fc533d2b62a3635649e3834de7f5fde11d4ce6f5d06d32
3
+ metadata.gz: b8e9117e1b2cc22ef6f530c9ffdc08bc0660c068a51b808b53db9e6cb7e4bd53
4
+ data.tar.gz: 880060748ab051cf51ea29e7b568c30ae49aac9577bb81c7c6eb55aba2e74f23
5
5
  SHA512:
6
- metadata.gz: 9f3281f80e17c445fbb5751ef211d71e517fb8884dfd108c6a4916c8ed8d034821a00e0d22415b88b4d0c3482c486eb845b29b876de38b303d2f7041c00a0393
7
- data.tar.gz: 5b954d3485faf8aadac643726e38980c9ec6098ca057acfda0926a3f6b7dea8290bc8997c51f67f8e3cd4efade711d327a84cd2dc0390bfd406a1a72c2d66719
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)
@@ -1,3 +1,3 @@
1
1
  module QuizApiClient
2
- VERSION = '2.8.0'.freeze
2
+ VERSION = '2.9.0'.freeze
3
3
  end
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.8.0
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-01-29 00:00:00.000000000 Z
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.6
261
+ rubygems_version: 2.7.8
263
262
  signing_key:
264
263
  specification_version: 4
265
264
  summary: Ruby client for quiz_api
@@ -1,3 +0,0 @@
1
- {
2
- "files.trimTrailingWhitespace": true
3
- }