Class: Moodle2CC::CanvasCC::Models::CanvasFile

Inherits:
Resource
  • Object
show all
Defined in:
lib/moodle2cc/canvas_cc/models/canvas_file.rb

Constant Summary collapse

WEB_RESOURCES =
'web_resources'

Constants inherited from Resource

Resource::WEB_CONTENT_TYPE

Instance Attribute Summary collapse

Attributes inherited from Resource

#dependencies, #files, #href, #identifier, #type

Instance Method Summary collapse

Methods inherited from Resource

#attributes

Constructor Details

#initializeCanvasFile

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_locationObject

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_pathObject

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