module IMS::LTI::Extensions::Content::ToolConsumer
Public Instance Methods
content_intended_use()
click to toggle source
# File lib/ims/lti/extensions/content.rb, line 185 def content_intended_use get_ext_param('content_intended_use') end
content_intended_use=(val)
click to toggle source
# File lib/ims/lti/extensions/content.rb, line 181 def content_intended_use=(val) set_ext_param('content_intended_use', val) end
content_return_types()
click to toggle source
a comma-separated string of the supported outcome data types
# File lib/ims/lti/extensions/content.rb, line 177 def content_return_types get_ext_param('content_return_types') end
content_return_types=(val)
click to toggle source
a list of the content types accepted
tc.add_content_return_types=(['url', 'text']) tc.add_content_return_types=("url,text")
# File lib/ims/lti/extensions/content.rb, line 171 def content_return_types=(val) val = val.join(',') if val.is_a? Array set_ext_param('content_return_types', val) end
support_embed_content!()
click to toggle source
convenience method for setting support for embed content
# File lib/ims/lti/extensions/content.rb, line 196 def support_embed_content! self.content_intended_use = 'embed' self.content_return_types = 'oembed,lti_launch_url,url,image_url,iframe' end
support_homework_content!()
click to toggle source
convenience method for setting support for homework content
# File lib/ims/lti/extensions/content.rb, line 190 def support_homework_content! self.content_intended_use = 'homework' self.content_return_types = 'file,url' end