bridge_api 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bridge_api/client.rb +1 -0
- data/lib/bridge_api/client/role.rb +15 -0
- data/lib/bridge_api/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ad6bf06ea2e371f6bd3be6fc8d32256a018351a
|
4
|
+
data.tar.gz: 2755f445f2f52a3d74a3e0f8483b2f6fa59f0d42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 946f41bcd7c178055d0f7510364e6669f29a1d9ef355e0d4aabfaeccf226f97f841071938a5a558b94ee19070e1af6dd72d9afdf5fe68bb36b02a58bf44d75f3
|
7
|
+
data.tar.gz: aaef2be57e81dff8b59089ac968e11fc5f888ec6c6e7f6ada1119a21f5677b0bd55b8ba3da10360179797ab83630aaddfa77e794dde506642436364d4f66c045
|
data/lib/bridge_api/client.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
module BridgeAPI
|
2
|
+
class Client
|
3
|
+
module Role
|
4
|
+
|
5
|
+
def get_all_roles(params = {})
|
6
|
+
get("#{API_PATH}#{AUTHOR_PATH}#{ROLE_PATH}", params)
|
7
|
+
end
|
8
|
+
|
9
|
+
def get_role(role_id, params = {})
|
10
|
+
get("#{API_PATH}#{AUTHOR_PATH}#{ROLE_PATH}/#{role_id}", params)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/bridge_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridge_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Shaffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -199,6 +199,7 @@ files:
|
|
199
199
|
- lib/bridge_api/client/live_course_enrollment.rb
|
200
200
|
- lib/bridge_api/client/manager.rb
|
201
201
|
- lib/bridge_api/client/program_enrollment.rb
|
202
|
+
- lib/bridge_api/client/role.rb
|
202
203
|
- lib/bridge_api/client/sub_account.rb
|
203
204
|
- lib/bridge_api/client/user.rb
|
204
205
|
- lib/bridge_api/version.rb
|
@@ -253,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
254
|
version: '0'
|
254
255
|
requirements: []
|
255
256
|
rubyforge_project:
|
256
|
-
rubygems_version: 2.
|
257
|
+
rubygems_version: 2.4.8
|
257
258
|
signing_key:
|
258
259
|
specification_version: 4
|
259
260
|
summary: Bridge API
|
@@ -289,4 +290,3 @@ test_files:
|
|
289
290
|
- spec/fixtures/users.json
|
290
291
|
- spec/support/fake_bridge.rb
|
291
292
|
- spec/test_helper.rb
|
292
|
-
has_rdoc:
|