Class: Moodle2CC::Moodle2::Models::Course
- Inherits:
-
Object
- Object
- Moodle2CC::Moodle2::Models::Course
- Defined in:
- lib/moodle2cc/moodle2/models/course.rb
Instance Attribute Summary collapse
-
#assignments ⇒ Object
Returns the value of attribute assignments.
-
#books ⇒ Object
Returns the value of attribute books.
-
#choices ⇒ Object
Returns the value of attribute choices.
-
#course_id ⇒ Object
Returns the value of attribute course_id.
-
#external_urls ⇒ Object
Returns the value of attribute external_urls.
-
#feedbacks ⇒ Object
Returns the value of attribute feedbacks.
-
#files ⇒ Object
Returns the value of attribute files.
-
#folders ⇒ Object
Returns the value of attribute folders.
-
#forums ⇒ Object
Returns the value of attribute forums.
-
#fullname ⇒ Object
Returns the value of attribute fullname.
-
#glossaries ⇒ Object
Returns the value of attribute glossaries.
-
#grading_scales ⇒ Object
Returns the value of attribute grading_scales.
-
#id_number ⇒ Object
Returns the value of attribute id_number.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#lti_links ⇒ Object
Returns the value of attribute lti_links.
-
#missing_files ⇒ Object
Returns the value of attribute missing_files.
-
#pages ⇒ Object
Returns the value of attribute pages.
-
#question_categories ⇒ Object
Returns the value of attribute question_categories.
-
#questionnaires ⇒ Object
Returns the value of attribute questionnaires.
-
#quizzes ⇒ Object
Returns the value of attribute quizzes.
-
#resources ⇒ Object
Returns the value of attribute resources.
-
#sections ⇒ Object
Returns the value of attribute sections.
-
#shortname ⇒ Object
Returns the value of attribute shortname.
-
#show_grades ⇒ Object
Returns the value of attribute show_grades.
-
#startdate ⇒ Object
Returns the value of attribute startdate.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#wikis ⇒ Object
Returns the value of attribute wikis.
Instance Method Summary collapse
- #activities ⇒ Object
-
#initialize ⇒ Course
constructor
A new instance of Course.
Constructor Details
#initialize ⇒ Course
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
#assignments ⇒ Object
Returns the value of attribute assignments.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def assignments @assignments end |
#books ⇒ Object
Returns the value of attribute books.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def books @books end |
#choices ⇒ Object
Returns the value of attribute choices.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def choices @choices end |
#course_id ⇒ Object
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_urls ⇒ Object
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 |
#feedbacks ⇒ Object
Returns the value of attribute feedbacks.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def feedbacks @feedbacks end |
#files ⇒ Object
Returns the value of attribute files.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def files @files end |
#folders ⇒ Object
Returns the value of attribute folders.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def folders @folders end |
#forums ⇒ Object
Returns the value of attribute forums.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def forums @forums end |
#fullname ⇒ Object
Returns the value of attribute fullname.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def fullname @fullname end |
#glossaries ⇒ Object
Returns the value of attribute glossaries.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def glossaries @glossaries end |
#grading_scales ⇒ Object
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_number ⇒ Object
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 |
#labels ⇒ Object
Returns the value of attribute labels.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def labels @labels end |
#lti_links ⇒ Object
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_files ⇒ Object
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 |
#pages ⇒ Object
Returns the value of attribute pages.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def pages @pages end |
#question_categories ⇒ Object
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 |
#questionnaires ⇒ Object
Returns the value of attribute questionnaires.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def questionnaires @questionnaires end |
#quizzes ⇒ Object
Returns the value of attribute quizzes.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def quizzes @quizzes end |
#resources ⇒ Object
Returns the value of attribute resources.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def resources @resources end |
#sections ⇒ Object
Returns the value of attribute sections.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def sections @sections end |
#shortname ⇒ Object
Returns the value of attribute shortname.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def shortname @shortname end |
#show_grades ⇒ Object
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 |
#startdate ⇒ Object
Returns the value of attribute startdate.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def startdate @startdate end |
#summary ⇒ Object
Returns the value of attribute summary.
3 4 5 |
# File 'lib/moodle2cc/moodle2/models/course.rb', line 3 def summary @summary end |
#wikis ⇒ Object
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
#activities ⇒ Object
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 |