Module: BridgeAPI::Client::SubAccount

Defined in:
lib/bridge_api/client/sub_account.rb

Instance Method Summary collapse

Instance Method Details

#get_sub_accounts(params = {}) ⇒ Object



4
5
6
# File 'lib/bridge_api/client/sub_account.rb', line 4

def get_sub_accounts(params = {})
  get("#{API_PATH}#{ADMIN_PATH}#{SUB_ACCOUNT_PATH}", params)
end

#revoke_course_from_subaccount(course_template_id, params = {}) ⇒ Object



12
13
14
# File 'lib/bridge_api/client/sub_account.rb', line 12

def revoke_course_from_subaccount(course_template_id, params = {})
  put("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}/#{SUB_ACCOUNT_PATH}/revoke", params)
end

#share_course_with_subaccount(course_template_id, params = {}) ⇒ Object



8
9
10
# File 'lib/bridge_api/client/sub_account.rb', line 8

def share_course_with_subaccount(course_template_id, params = {})
  put("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}/#{SUB_ACCOUNT_PATH}/share", params)
end