Class: Moodle2CC::Moodle2::Models::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/moodle2cc/moodle2/models/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResource

Returns a new instance of Resource.



6
7
8
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 6

def initialize
  @file_ids = []
end

Instance Attribute Details

#displayObject

Returns the value of attribute display.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def display
  @display
end

#display_optionsObject

Returns the value of attribute display_options.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def display_options
  @display_options
end

#fileObject

Returns the value of attribute file.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def file
  @file
end

#file_idsObject

Returns the value of attribute file_ids.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def file_ids
  @file_ids
end

#filter_filesObject

Returns the value of attribute filter_files.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def filter_files
  @filter_files
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def id
  @id
end

#introObject

Returns the value of attribute intro.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def intro
  @intro
end

#intro_formatObject

Returns the value of attribute intro_format.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def intro_format
  @intro_format
end

#legacy_filesObject

Returns the value of attribute legacy_files.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def legacy_files
  @legacy_files
end

#legacy_files_lastObject

Returns the value of attribute legacy_files_last.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def legacy_files_last
  @legacy_files_last
end

#module_idObject

Returns the value of attribute module_id.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def module_id
  @module_id
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def name
  @name
end

#to_be_migratedObject

Returns the value of attribute to_be_migrated.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def to_be_migrated
  @to_be_migrated
end

#visibleObject

Returns the value of attribute visible.



3
4
5
# File 'lib/moodle2cc/moodle2/models/resource.rb', line 3

def visible
  @visible
end