class Moodle2CC::CanvasCC::Models::CanvasFile

Constants

WEB_RESOURCES

Attributes

file_location[RW]
file_path[R]

Public Class Methods

new() click to toggle source
# File lib/moodle2cc/canvas_cc/models/canvas_file.rb, line 9
def initialize
  super
  @type = WEB_CONTENT_TYPE
end

Public Instance Methods

file_path=(file_path) click to toggle source
# File lib/moodle2cc/canvas_cc/models/canvas_file.rb, line 14
def file_path=(file_path)
  @href = File.join(WEB_RESOURCES, file_path)
  @files << self.href
  @file_path = file_path
end