Class: Moodle2CC::CanvasCC::Models::CanvasFile
- Defined in:
- lib/moodle2cc/canvas_cc/models/canvas_file.rb
Constant Summary collapse
- WEB_RESOURCES =
'web_resources'
Constants inherited from Resource
Instance Attribute Summary collapse
-
#file_location ⇒ Object
Returns the value of attribute file_location.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
Attributes inherited from Resource
#dependencies, #files, #href, #identifier, #type
Instance Method Summary collapse
-
#initialize ⇒ CanvasFile
constructor
A new instance of CanvasFile.
Methods inherited from Resource
Constructor Details
#initialize ⇒ CanvasFile
Returns a new instance of CanvasFile.
9 10 11 12 |
# File 'lib/moodle2cc/canvas_cc/models/canvas_file.rb', line 9 def initialize super @type = WEB_CONTENT_TYPE end |
Instance Attribute Details
#file_location ⇒ Object
Returns the value of attribute file_location.
7 8 9 |
# File 'lib/moodle2cc/canvas_cc/models/canvas_file.rb', line 7 def file_location @file_location end |
#file_path ⇒ Object
Returns the value of attribute file_path.
6 7 8 |
# File 'lib/moodle2cc/canvas_cc/models/canvas_file.rb', line 6 def file_path @file_path end |