Module: Bearcat::Client::Accounts

Defined in:
lib/bearcat/client/accounts.rb

Instance Method Summary collapse

Instance Method Details

#account(account) ⇒ Object



9
10
11
# File 'lib/bearcat/client/accounts.rb', line 9

def ()
  get("/api/v1/accounts/#{}")
end

#account_admins(account, params = {}) ⇒ Object



21
22
23
# File 'lib/bearcat/client/accounts.rb', line 21

def (, params = {})
  get("/api/v1/accounts/#{}/admins", params)
end

#account_courses(account, params = {}) ⇒ Object



41
42
43
# File 'lib/bearcat/client/accounts.rb', line 41

def (, params = {})
  get("/api/v1/accounts/#{}/courses", params)
end

#account_grading_standard(account, grading_standard_id, params = {}) ⇒ Object



49
50
51
# File 'lib/bearcat/client/accounts.rb', line 49

def (, grading_standard_id, params={})
  get("/api/v1/accounts/#{}/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 (, params={})
  get("/api/v1/accounts/#{}/grading_standards", params)
end

#account_roles(account, params = {}) ⇒ Object



37
38
39
# File 'lib/bearcat/client/accounts.rb', line 37

def (, params = {})
  get("/api/v1/accounts/#{}/roles", params)
end

#account_sis_imports(account, params = {}) ⇒ Object



53
54
55
# File 'lib/bearcat/client/accounts.rb', line 53

def (, params={})
  get("/api/v1/accounts/#{}/sis_imports", params)
end

#create_account_admin(account, params = {}) ⇒ Object



25
26
27
# File 'lib/bearcat/client/accounts.rb', line 25

def (, params = {})
  post("/api/v1/accounts/#{}/admins", params)
end

#delete_account_admin(account, user, params = {}) ⇒ Object



29
30
31
# File 'lib/bearcat/client/accounts.rb', line 29

def (, user, params = {})
  delete("/api/v1/accounts/#{}/admins/#{user}", params)
end

#enrollment(account, enrollment, params = {}) ⇒ Object



57
58
59
# File 'lib/bearcat/client/accounts.rb', line 57

def enrollment(, enrollment, params={})
  get("/api/v1/accounts/#{.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(, params = {})
  get("/api/v1/accounts/#{}/roles", params)
end

#list_sub_accounts(account, params = {}) ⇒ Object



13
14
15
# File 'lib/bearcat/client/accounts.rb', line 13

def list_sub_accounts(, params = {})
  get("api/v1/accounts/#{}/sub_accounts", params)
end

#terms(account, params = {}) ⇒ Object



17
18
19
# File 'lib/bearcat/client/accounts.rb', line 17

def terms(, params = {})
  get("/api/v1/accounts/#{}/terms", params)
end