Module: Bearcat::Client::Accounts
- Included in:
- Bearcat::Client
- Defined in:
- lib/bearcat/client/accounts.rb
Instance Method Summary collapse
- #account(account) ⇒ Object
- #account_admins(account, params = {}) ⇒ Object
- #account_courses(account, params = {}) ⇒ Object
- #account_grading_standard(account, grading_standard_id, params = {}) ⇒ Object
- #account_grading_standards(account, params = {}) ⇒ Object
- #account_roles(account, params = {}) ⇒ Object
- #account_sis_imports(account, params = {}) ⇒ Object
- #create_account_admin(account, params = {}) ⇒ Object
- #delete_account_admin(account, user, params = {}) ⇒ Object
- #enrollment(account, enrollment, params = {}) ⇒ Object
- #list_accounts(params = {}) ⇒ Object
- #list_roles(account, params = {}) ⇒ Object
- #list_sub_accounts(account, params = {}) ⇒ Object
- #terms(account, params = {}) ⇒ Object
Instance Method Details
#account(account) ⇒ Object
9 10 11 |
# File 'lib/bearcat/client/accounts.rb', line 9 def account(account) get("/api/v1/accounts/#{account}") end |
#account_admins(account, params = {}) ⇒ Object
21 22 23 |
# File 'lib/bearcat/client/accounts.rb', line 21 def account_admins(account, params = {}) get("/api/v1/accounts/#{account}/admins", params) end |
#account_courses(account, params = {}) ⇒ Object
41 42 43 |
# File 'lib/bearcat/client/accounts.rb', line 41 def account_courses(account, params = {}) get("/api/v1/accounts/#{account}/courses", params) end |
#account_grading_standard(account, grading_standard_id, params = {}) ⇒ Object
49 50 51 |
# File 'lib/bearcat/client/accounts.rb', line 49 def account_grading_standard(account, grading_standard_id, params={}) get("/api/v1/accounts/#{account}/grading_standards/#{grading_standard_id}", params) end |
#account_grading_standards(account, params = {}) ⇒ Object
45 46 47 |
# File 'lib/bearcat/client/accounts.rb', line 45 def account_grading_standards(account, params={}) get("/api/v1/accounts/#{account}/grading_standards", params) end |
#account_roles(account, params = {}) ⇒ Object
37 38 39 |
# File 'lib/bearcat/client/accounts.rb', line 37 def account_roles(account, params = {}) get("/api/v1/accounts/#{account}/roles", params) end |
#account_sis_imports(account, params = {}) ⇒ Object
53 54 55 |
# File 'lib/bearcat/client/accounts.rb', line 53 def account_sis_imports(account, params={}) get("/api/v1/accounts/#{account}/sis_imports", params) end |
#create_account_admin(account, params = {}) ⇒ Object
25 26 27 |
# File 'lib/bearcat/client/accounts.rb', line 25 def create_account_admin(account, params = {}) post("/api/v1/accounts/#{account}/admins", params) end |
#delete_account_admin(account, user, params = {}) ⇒ Object
29 30 31 |
# File 'lib/bearcat/client/accounts.rb', line 29 def delete_account_admin(account, user, params = {}) delete("/api/v1/accounts/#{account}/admins/#{user}", params) end |
#enrollment(account, enrollment, params = {}) ⇒ Object
57 58 59 |
# File 'lib/bearcat/client/accounts.rb', line 57 def enrollment(account, enrollment, params={}) get("/api/v1/accounts/#{account.to_s}/enrollments/#{enrollment.to_s}", params) end |
#list_accounts(params = {}) ⇒ Object
5 6 7 |
# File 'lib/bearcat/client/accounts.rb', line 5 def list_accounts(params = {}) get("/api/v1/accounts", params) end |
#list_roles(account, params = {}) ⇒ Object
33 34 35 |
# File 'lib/bearcat/client/accounts.rb', line 33 def list_roles(account, params = {}) get("/api/v1/accounts/#{account}/roles", params) end |
#list_sub_accounts(account, params = {}) ⇒ Object
13 14 15 |
# File 'lib/bearcat/client/accounts.rb', line 13 def list_sub_accounts(account, params = {}) get("api/v1/accounts/#{account}/sub_accounts", params) end |
#terms(account, params = {}) ⇒ Object
17 18 19 |
# File 'lib/bearcat/client/accounts.rb', line 17 def terms(account, params = {}) get("/api/v1/accounts/#{account}/terms", params) end |