Module: BridgeAPI::Client::Program

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

Instance Method Summary collapse

Instance Method Details

#complete_program(program_id, params = {}) ⇒ Object



14
15
16
# File 'lib/bridge_api/client/program.rb', line 14

def complete_program(program_id, params = {})
  post("#{API_PATH}#{ADMIN_PATH}#{PROGRAM_PATH}/#{program_id}/completions", params)
end

#get_all_programs(params = {}) ⇒ Object



6
7
8
# File 'lib/bridge_api/client/program.rb', line 6

def get_all_programs(params = {})
  get("#{API_PATH}#{AUTHOR_PATH}#{PROGRAM_PATH}", params)
end

#get_program(program_id, params = {}) ⇒ Object



10
11
12
# File 'lib/bridge_api/client/program.rb', line 10

def get_program(program_id, params = {})
  get("#{API_PATH}#{AUTHOR_PATH}#{PROGRAM_PATH}/#{program_id}", params)
end