Class: Senkyoshi::Attachment
- Inherits:
-
Content
- Object
- Resource
- FileResource
- Content
- 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, #title, #url
Attributes inherited from FileResource
Instance Method Summary collapse
Methods inherited from Content
#create_module, from, get_pre_data, #set_module
Methods inherited from FileResource
Methods inherited from Resource
#_find_directories, #_fix_path, #_matches_directory_xid?, #_search_and_replace, #cleanup, #fix_html, get_pre_data, #matches_xid?, #strip_xid
Constructor Details
This class inherits a constructor from Senkyoshi::FileResource
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 |