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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d27ee9cce1ed1d476be500728c9d1429a2b672a0
4
- data.tar.gz: eb76aa1ffdd7ce8aeb88e41461c0d7f57f333b1f
3
+ metadata.gz: 4ad6bf06ea2e371f6bd3be6fc8d32256a018351a
4
+ data.tar.gz: 2755f445f2f52a3d74a3e0f8483b2f6fa59f0d42
5
5
  SHA512:
6
- metadata.gz: 52a9d6f7c026674dcb94679aa0a73d7ae67ed0126aa72f289349b1c15bdb4fd172efbf527f7a6c7ddb781e403d506b2484a3dbc843bc558fcdd3573050c07c69
7
- data.tar.gz: c73d0158fbd320e6370f928b555f1b93efcb1ab8edc06d2ada243013f93e053cdffd19787c0c39c520a0524af6eb65b3b435e5f0b912c8191a5dfe1b3435748f
6
+ metadata.gz: 946f41bcd7c178055d0f7510364e6669f29a1d9ef355e0d4aabfaeccf226f97f841071938a5a558b94ee19070e1af6dd72d9afdf5fe68bb36b02a58bf44d75f3
7
+ data.tar.gz: aaef2be57e81dff8b59089ac968e11fc5f888ec6c6e7f6ada1119a21f5677b0bd55b8ba3da10360179797ab83630aaddfa77e794dde506642436364d4f66c045
@@ -26,6 +26,7 @@ module BridgeAPI
26
26
  SUB_ACCOUNT_PATH = '/sub_accounts'
27
27
  API_VERSION = 1
28
28
  API_PATH = '/api'
29
+ ROLE_PATH = '/roles'
29
30
  RESULT_MAPPING = {}
30
31
 
31
32
  require 'bridge_api/api_array'
@@ -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
@@ -1,3 +1,3 @@
1
1
  module BridgeAPI
2
- VERSION = '0.1.16' unless defined?(BridgeAPI::VERSION)
2
+ VERSION = '0.1.17' unless defined?(BridgeAPI::VERSION)
3
3
  end
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.16
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-01-15 00:00:00.000000000 Z
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.2.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: