quiz_api_client 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: ed3490344641f0e0df9d58e273898318046a844a
4
- data.tar.gz: 4236414000e6d07afb262f9373868af3b01bfc78
3
+ metadata.gz: c2463d4ce86dbe40353740eebbd781d066b1adc8
4
+ data.tar.gz: 1927ad94d775b8d5187c81422040717490633a8d
5
5
  SHA512:
6
- metadata.gz: 77d1d3fc2d9551f3b8fb1e0797e50fddabb061de4a6accee921be7a6001e150e05a96a5ea3b0f69028d5435059443b0d4651162900e3a9a27460a51307ee2a9c
7
- data.tar.gz: fc94ceeb363da8a649e5aeab0d60f1e782f4ab2f03508fe3dfa12c30ed638adccd38988ea3903e812ba24c24c6c875cb46782de1e13f642a00bfc4bb88f25f36
6
+ metadata.gz: 19c114e3a2814f6b04ac9e15675e391a47d80aa32e729f671e2bae69bed20a1bb08e3dc9487c066663d47b60c06db1527d645d67be73b89f7e831a6e24d4ade6
7
+ data.tar.gz: f9d09b8a7f0111d696d64b94864619e3b96af470dd7a8a7e5735c09acab6132f4ba40cf68795a866231da22c4a96b0bb4536b23ccdff6dec0b6d56f9bdad6bf8
data/README.md CHANGED
@@ -74,6 +74,18 @@ client.quizzes_service.create(token:, params:)
74
74
  client.quizzes_service.list(token:, params:)
75
75
  ```
76
76
 
77
+ #### Quiz Entries Service
78
+
79
+ ```ruby
80
+ # Get Quiz Entries
81
+ client.quiz_entries_service.list(
82
+ token: my_scoped_token,
83
+ params: {
84
+ id: quiz_id
85
+ }
86
+ )
87
+ ```
88
+
77
89
  #### Quiz Session Service
78
90
 
79
91
  ```ruby
@@ -0,0 +1,15 @@
1
+ module QuizApiClient::Services
2
+ class QuizEntriesService < BaseApiService
3
+ def list(params:, token: nil)
4
+ raise 'Quiz Id Required' unless params && params[:id]
5
+ get_from_quiz_api(params: params, token: token)
6
+ end
7
+
8
+ private
9
+
10
+ def get_from_quiz_api(params:, token:)
11
+ client(token: token).get(
12
+ "/api/quizzes/#{params[:id]}/quiz_entries")
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module QuizApiClient
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
@@ -48,6 +48,10 @@ module QuizApiClient
48
48
  @_quiz_session_result_service ||= Services::QuizSessionResultService.new(service_params)
49
49
  end
50
50
 
51
+ def quiz_entries_service
52
+ @_quiz_entries_service ||= Services::QuizEntriesService.new(service_params)
53
+ end
54
+
51
55
  private
52
56
 
53
57
  def service_params
@@ -68,6 +72,7 @@ require 'quiz_api_client/services/base_api_service'
68
72
  require 'quiz_api_client/services/item_analyses_service'
69
73
  require 'quiz_api_client/services/qti_imports_service'
70
74
  require 'quiz_api_client/services/quiz_analyses_service'
75
+ require 'quiz_api_client/services/quiz_entries_service'
71
76
  require 'quiz_api_client/services/quiz_session_events_service'
72
77
  require 'quiz_api_client/services/quiz_session_service'
73
78
  require 'quiz_api_client/services/quiz_sessions_service'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quiz_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-05 00:00:00.000000000 Z
11
+ date: 2017-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -135,6 +135,7 @@ files:
135
135
  - lib/quiz_api_client/services/jwt_service.rb
136
136
  - lib/quiz_api_client/services/qti_imports_service.rb
137
137
  - lib/quiz_api_client/services/quiz_analyses_service.rb
138
+ - lib/quiz_api_client/services/quiz_entries_service.rb
138
139
  - lib/quiz_api_client/services/quiz_session_events_service.rb
139
140
  - lib/quiz_api_client/services/quiz_session_result_service.rb
140
141
  - lib/quiz_api_client/services/quiz_session_service.rb