Module: IMS::LTI::Extensions::Canvas
- Defined in:
- lib/ims/lti/extensions/canvas.rb
Overview
Module that adds Canvas specific LTI extensions
It adds convenience methods for generating common canvas use case LTI configurations
Usage
To generate an XML configuration:
# Create a config object and set some options
tc = IMS::LTI::ToolConfig.new(:title => "Example Sinatra Tool Provider", :launch_url => url)
tc.description = "This example LTI Tool Provider supports LIS Outcome pass-back."
# Extend the Canvas Tool config and add canvas related extensions
tc.extend IMS::LTI::Extensions::Canvas::ToolConfig
tc.homework_submission! 'http://someplace.com/homework', 'Find Homework'
# generate the XML
tc.to_xml
Or to create a config object from an XML String:
tc = IMS::LTI::ToolConfig.create_from_xml(xml)
Defined Under Namespace
Modules: ToolConfig