uw_sws 2.0.3 → 2.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -13
- data/lib/uw_sws/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f7d24667f71e0bb36644c9107552a56dec62b0a
|
4
|
+
data.tar.gz: 5d1e7b411df636d702e38b7003d6a1f1673049a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 589394dded0b4d3ac57dc3b7004b0e758e4adec7703ea639784cb185c048fc09f902875629dc99dfff3873c7a4e411d291abe8e04dd9eaabd83decbd0098b809
|
7
|
+
data.tar.gz: 16c817484aef5ba7d263446ba84e708f33a4a52327c82de5a3d1736c6605e920dcbc24e772f32968ccb405848e1f276fd4805e6b9e6fcb52a2e25a95a48115c5
|
data/README.md
CHANGED
@@ -9,27 +9,23 @@ endpoints](https://wiki.cac.washington.edu/display/SWS/Student+Web+Service+Clien
|
|
9
9
|
gem install uw_sws
|
10
10
|
|
11
11
|
### Examples
|
12
|
-
|
12
|
+
First, configure the gem to how you want to use it.
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
```Ruby
|
15
|
+
require 'uw_sws'
|
16
|
+
cert = "/TheFullPath/ToYour/x509Certificate.pem"
|
17
|
+
key = "/TheFullPath/ToYour/x509Key"
|
18
|
+
url = "https://ucswseval1.cac.washington.edu/student/v5/"
|
19
|
+
service = UwSws.new(cert: cert, key: key, base: url, use_cache: false)
|
20
|
+
```
|
20
21
|
|
22
|
+
Now get all the Geology courses from 1985?
|
21
23
|
|
22
|
-
Maybe you want all the Geology courses from 1985?
|
23
|
-
|
24
|
-
require 'uw_student_webservice'
|
25
|
-
service = UwSws.new
|
26
24
|
courses = service(1985, "winter", curriculum: "GEOG")
|
27
25
|
|
28
26
|
For cases where you need to page through results you can check for the existance
|
29
27
|
of ``service.next`` and make follow up queries based on it's data.
|
30
28
|
|
31
|
-
require 'uw_student_webservice'
|
32
|
-
service = UwSws.new
|
33
29
|
courses = service.courses(1985, "autumn", curriculum: "GEOG", size: 25)
|
34
30
|
puts service.next
|
35
31
|
|
data/lib/uw_sws/version.rb
CHANGED