Class: Moodle2CC::Moodle2::Models::Choice
- Inherits:
-
Object
- Object
- Moodle2CC::Moodle2::Models::Choice
- Defined in:
- lib/moodle2cc/moodle2/models/choice.rb
Instance Attribute Summary collapse
-
#allow_update ⇒ Object
Returns the value of attribute allow_update.
-
#completion_submit ⇒ Object
Returns the value of attribute completion_submit.
-
#display ⇒ Object
Returns the value of attribute display.
-
#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.
-
#limit_answers ⇒ Object
Returns the value of attribute limit_answers.
-
#module_id ⇒ Object
Returns the value of attribute module_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#publish ⇒ Object
Returns the value of attribute publish.
-
#show_results ⇒ Object
Returns the value of attribute show_results.
-
#show_unanswered ⇒ Object
Returns the value of attribute show_unanswered.
-
#time_close ⇒ Object
Returns the value of attribute time_close.
-
#time_modified ⇒ Object
Returns the value of attribute time_modified.
-
#time_open ⇒ Object
Returns the value of attribute time_open.
-
#visible ⇒ Object
Returns the value of attribute visible.
Instance Method Summary collapse
-
#initialize ⇒ Choice
constructor
A new instance of Choice.
Constructor Details
#initialize ⇒ Choice
Returns a new instance of Choice.
8 9 10 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 8 def initialize @options = [] end |
Instance Attribute Details
#allow_update ⇒ Object
Returns the value of attribute allow_update.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def allow_update @allow_update end |
#completion_submit ⇒ Object
Returns the value of attribute completion_submit.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def completion_submit @completion_submit end |
#display ⇒ Object
Returns the value of attribute display.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def display @display end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def id @id end |
#intro ⇒ Object
Returns the value of attribute intro.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.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/choice.rb', line 4 def intro_format @intro_format end |
#limit_answers ⇒ Object
Returns the value of attribute limit_answers.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def limit_answers @limit_answers end |
#module_id ⇒ Object
Returns the value of attribute module_id.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.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/choice.rb', line 4 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def @options end |
#publish ⇒ Object
Returns the value of attribute publish.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def publish @publish end |
#show_results ⇒ Object
Returns the value of attribute show_results.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def show_results @show_results end |
#show_unanswered ⇒ Object
Returns the value of attribute show_unanswered.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def show_unanswered @show_unanswered end |
#time_close ⇒ Object
Returns the value of attribute time_close.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def time_close @time_close end |
#time_modified ⇒ Object
Returns the value of attribute time_modified.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def time_modified @time_modified end |
#time_open ⇒ Object
Returns the value of attribute time_open.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def time_open @time_open end |
#visible ⇒ Object
Returns the value of attribute visible.
4 5 6 |
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4 def visible @visible end |