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, #set_module
Methods inherited from FileResource
#create_module, from, #initialize
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
34 35 36 |
# File 'lib/senkyoshi/models/attachment.rb', line 34 def canvas_conversion(course, _resource) create_module(course) end |
#iterate_xml(xml, pre_data) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/senkyoshi/models/attachment.rb', line 21 def iterate_xml(xml, pre_data) super @module_item = ModuleItem.new( @title, @module_type, @files.first.name, @url, @indent, @file_name, ).canvas_conversion self end |