absorb_api 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 283bbfb6c18801cfd1af81f68ceaf57e3a93b660
4
- data.tar.gz: e1b945f51ce99518ae9397312eac681196d770d8
3
+ metadata.gz: bf767e42a7e5ec5abe9e5bf64e49ce75e5a59465
4
+ data.tar.gz: c78eb3a8d8838256c87fb4a9ff5e1122a0d8e362
5
5
  SHA512:
6
- metadata.gz: 891d3b4160a1942d5b79d52eb691592b10dff26892f477e6f3c4eb376dab0d4ca6338f14fd5cb4124538066b366a67620a3a27c0d9aba6bc6d5855d8ec0782de
7
- data.tar.gz: 13a46c9737643fbccddc0cf8dfe2e03bbe673f76398b0910e61b875bddc25b5e6f1c92a92e468ee94973ea78d9dc0d2a92ed16c21b63d97e66493d7be789a61d
6
+ metadata.gz: bfe7c24d38dd0dee76956d4248a85265a0226c91f8b6bbec75cbc48b3b0892dbd4fdccdc9fa425508950ef7812b72dc96f80ab0067743cd20d35aa5d2075ef7c
7
+ data.tar.gz: a80e1094dfe1999ecb10a299490daa3629ef4dc7bb475f50c434fc138bc341dc4ec0ac1685311c7b3b155a32443c1c76fe6bb53d1ee769104a68bc32ddaa7c44
data/README.md CHANGED
@@ -94,9 +94,6 @@ AbsorbApi::User.create do |user|
94
94
  user.email_address = "email_address"
95
95
  user.password = "password"
96
96
  end
97
-
98
- # To return a collection of courses available per user given a collection of users
99
- courses = AbsorbApi::User.courses_from_collection(users)
100
97
  ```
101
98
 
102
99
  ### Course
@@ -141,10 +138,6 @@ course.prerequisites
141
138
  course.lessons
142
139
  # To return a single lesson for a specific course
143
140
  course.find_lesson(id)
144
-
145
- # To return a collection of associated enrollments given a collection of courses
146
- # Available conditions include modifiedSince and status
147
- AbsorbApi::Course.enrollments_from_collection(courses, modifiedSince: DateTime.new(2016, 1, 1))
148
141
  ```
149
142
 
150
143
  ### Category
@@ -271,10 +264,6 @@ AbsorbApi::Lesson.find(id)
271
264
  # To return a collection of associated lessons matching conditions
272
265
  # Available conditions are modifiedSince and status
273
266
  course_enrollment.lessons
274
-
275
- # To return a collection of associated enrollments given a collection of courses
276
- # Available conditions include modifiedSince and status
277
- AbsorbApi::CourseEnrollment.lessons_from_collection(course_enrollments, modifiedSince: DateTime.new(2016, 1, 1))
278
267
  ```
279
268
 
280
269
  ### LessonEnrollment
@@ -11,7 +11,7 @@ module AbsorbApi
11
11
 
12
12
  attrs = object.as_json.transform_keys(&:camelize)
13
13
  response = api.post(to_s.demodulize.pluralize.to_s, attrs)
14
- object.id = response.body["Id"]
14
+ object.id = response["Id"]
15
15
  object
16
16
  end
17
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AbsorbApi
4
- VERSION = "0.9.1"
4
+ VERSION = "0.9.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: absorb_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - npezza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-16 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -299,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  version: '0'
300
300
  requirements: []
301
301
  rubyforge_project:
302
- rubygems_version: 2.6.12
302
+ rubygems_version: 2.6.13
303
303
  signing_key:
304
304
  specification_version: 4
305
305
  summary: API wrapper for Absorb LMS