Class: Moodle2CC::Moodle2::Models::Questionnaire
- Inherits:
-
Object
- Object
- Moodle2CC::Moodle2::Models::Questionnaire
- Defined in:
- lib/moodle2cc/moodle2/models/questionnaire.rb
Defined Under Namespace
Classes: Question
Instance Attribute Summary collapse
-
#close_date ⇒ Object
Returns the value of attribute close_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#intro ⇒ Object
Returns the value of attribute intro.
-
#intro_format ⇒ Object
Returns the value of attribute intro_format.
-
#module_id ⇒ Object
Returns the value of attribute module_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#open_date ⇒ Object
Returns the value of attribute open_date.
-
#questions ⇒ Object
Returns the value of attribute questions.
-
#time_modified ⇒ Object
Returns the value of attribute time_modified.
-
#visible ⇒ Object
Returns the value of attribute visible.
Instance Method Summary collapse
-
#initialize ⇒ Questionnaire
constructor
A new instance of Questionnaire.
Constructor Details
#initialize ⇒ Questionnaire
Returns a new instance of Questionnaire.
7 8 9 |
# File 'lib/moodle2cc/moodle2/models/questionnaire.rb', line 7 def initialize @questions = [] end |
Instance Attribute Details
#close_date ⇒ Object
Returns the value of attribute close_date.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/questionnaire.rb', line 4 def close_date @close_date end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/questionnaire.rb', line 4 def id @id end |
#intro ⇒ Object
Returns the value of attribute intro.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/questionnaire.rb', line 4 def intro @intro end |
#intro_format ⇒ Object
Returns the value of attribute intro_format.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/questionnaire.rb', line 4 def intro_format @intro_format end |
#module_id ⇒ Object
Returns the value of attribute module_id.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/questionnaire.rb', line 4 def module_id @module_id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/questionnaire.rb', line 4 def name @name end |
#open_date ⇒ Object
Returns the value of attribute open_date.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/questionnaire.rb', line 4 def open_date @open_date end |
#questions ⇒ Object
Returns the value of attribute questions.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/questionnaire.rb', line 4 def questions @questions end |
#time_modified ⇒ Object
Returns the value of attribute time_modified.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/questionnaire.rb', line 4 def time_modified @time_modified end |
#visible ⇒ Object
Returns the value of attribute visible.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/questionnaire.rb', line 4 def visible @visible end |