Class: Senkyoshi::Attachment
- Defined in:
- lib/senkyoshi/models/attachment.rb
Constant Summary
Constants inherited from Content
Content::CONTENT_TYPES, Content::MODULE_TYPES
Instance Attribute Summary
Attributes inherited from Content
#body, #extendeddata, #files, #id, #title, #url
Instance Method Summary collapse
Methods inherited from Content
#create_module, from, #get_pre_data, #set_module
Methods inherited from Resource
#_search_and_replace, #cleanup, #fix_html, #matches_xid?
Instance Method Details
#canvas_conversion(course, _resource) ⇒ Object
17 18 19 |
# File 'lib/senkyoshi/models/attachment.rb', line 17 def canvas_conversion(course, _resource) create_module(course) end |
#iterate_xml(xml, pre_data) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/senkyoshi/models/attachment.rb', line 6 def iterate_xml(xml, pre_data) super @module_item = ModuleItem.new( @title, @module_type, @files.first.name, @url, ).canvas_conversion self end |