Class: Moodle2CC::Moodle2::Models::Course

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCourse

Returns a new instance of Course.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/moodle2cc/moodle2/models/course.rb', line 9

def initialize
  @sections = []
  @files = []
  @missing_files = []
  @pages = []
  @forums = []
  @assignments = []
  @books = []
  @folders = []
  @question_categories = []
  @quizzes = []
  @choices = []
  @feedbacks = []
  @questionnaires = []
  @glossaries = []
  @labels = []
  @resources = []
  @external_urls = []
  @wikis = []
  @grading_scales = {}
  @lti_links = []
end

Instance Attribute Details

#assignmentsObject

Returns the value of attribute assignments.



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

def assignments
  @assignments
end

#booksObject

Returns the value of attribute books.



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

def books
  @books
end

#choicesObject

Returns the value of attribute choices.



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

def choices
  @choices
end

#course_idObject

Returns the value of attribute course_id.



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

def course_id
  @course_id
end

#external_urlsObject

Returns the value of attribute external_urls.



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

def external_urls
  @external_urls
end

#feedbacksObject

Returns the value of attribute feedbacks.



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

def feedbacks
  @feedbacks
end

#filesObject

Returns the value of attribute files.



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

def files
  @files
end

#foldersObject

Returns the value of attribute folders.



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

def folders
  @folders
end

#forumsObject

Returns the value of attribute forums.



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

def forums
  @forums
end

#fullnameObject

Returns the value of attribute fullname.



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

def fullname
  @fullname
end

#glossariesObject

Returns the value of attribute glossaries.



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

def glossaries
  @glossaries
end

#grading_scalesObject

Returns the value of attribute grading_scales.



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

def grading_scales
  @grading_scales
end

#id_numberObject

Returns the value of attribute id_number.



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

def id_number
  @id_number
end

#labelsObject

Returns the value of attribute labels.



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

def labels
  @labels
end

Returns the value of attribute lti_links.



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

def lti_links
  @lti_links
end

#missing_filesObject

Returns the value of attribute missing_files.



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

def missing_files
  @missing_files
end

#pagesObject

Returns the value of attribute pages.



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

def pages
  @pages
end

#question_categoriesObject

Returns the value of attribute question_categories.



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

def question_categories
  @question_categories
end

#questionnairesObject

Returns the value of attribute questionnaires.



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

def questionnaires
  @questionnaires
end

#quizzesObject

Returns the value of attribute quizzes.



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

def quizzes
  @quizzes
end

#resourcesObject

Returns the value of attribute resources.



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

def resources
  @resources
end

#sectionsObject

Returns the value of attribute sections.



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

def sections
  @sections
end

#shortnameObject

Returns the value of attribute shortname.



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

def shortname
  @shortname
end

#show_gradesObject

Returns the value of attribute show_grades.



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

def show_grades
  @show_grades
end

#startdateObject

Returns the value of attribute startdate.



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

def startdate
  @startdate
end

#summaryObject

Returns the value of attribute summary.



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

def summary
  @summary
end

#wikisObject

Returns the value of attribute wikis.



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

def wikis
  @wikis
end

Instance Method Details

#activitiesObject



32
33
34
35
# File 'lib/moodle2cc/moodle2/models/course.rb', line 32

def activities
  pages + forums + assignments + books + folders + quizzes + labels + resources + glossaries +
    external_urls + choices + questionnaires + feedbacks + wikis + lti_links
end