Class: Pandarus::QuizQuestion
- Defined in:
- lib/pandarus/models/quiz_question.rb
Instance Attribute Summary collapse
-
#answers ⇒ Object
Returns the value of attribute answers.
-
#correct_comments ⇒ Object
Returns the value of attribute correct_comments.
-
#id ⇒ Object
Returns the value of attribute id.
-
#incorrect_comments ⇒ Object
Returns the value of attribute incorrect_comments.
-
#neutral_comments ⇒ Object
Returns the value of attribute neutral_comments.
-
#points_possible ⇒ Object
Returns the value of attribute points_possible.
-
#position ⇒ Object
Returns the value of attribute position.
-
#question_name ⇒ Object
Returns the value of attribute question_name.
-
#question_text ⇒ Object
Returns the value of attribute question_text.
-
#question_type ⇒ Object
Returns the value of attribute question_type.
-
#quiz_id ⇒ Object
Returns the value of attribute quiz_id.
Class Method Summary collapse
Methods inherited from ModelBase
#assign, #attr, #has_attr?, #initialize, #inspect, #to_body
Constructor Details
This class inherits a constructor from Pandarus::ModelBase
Instance Attribute Details
#answers ⇒ Object
Returns the value of attribute answers.
6 7 8 |
# File 'lib/pandarus/models/quiz_question.rb', line 6 def answers @answers end |
#correct_comments ⇒ Object
Returns the value of attribute correct_comments.
6 7 8 |
# File 'lib/pandarus/models/quiz_question.rb', line 6 def correct_comments @correct_comments end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/pandarus/models/quiz_question.rb', line 6 def id @id end |
#incorrect_comments ⇒ Object
Returns the value of attribute incorrect_comments.
6 7 8 |
# File 'lib/pandarus/models/quiz_question.rb', line 6 def incorrect_comments @incorrect_comments end |
#neutral_comments ⇒ Object
Returns the value of attribute neutral_comments.
6 7 8 |
# File 'lib/pandarus/models/quiz_question.rb', line 6 def neutral_comments @neutral_comments end |
#points_possible ⇒ Object
Returns the value of attribute points_possible.
6 7 8 |
# File 'lib/pandarus/models/quiz_question.rb', line 6 def points_possible @points_possible end |
#position ⇒ Object
Returns the value of attribute position.
6 7 8 |
# File 'lib/pandarus/models/quiz_question.rb', line 6 def position @position end |
#question_name ⇒ Object
Returns the value of attribute question_name.
6 7 8 |
# File 'lib/pandarus/models/quiz_question.rb', line 6 def question_name @question_name end |
#question_text ⇒ Object
Returns the value of attribute question_text.
6 7 8 |
# File 'lib/pandarus/models/quiz_question.rb', line 6 def question_text @question_text end |
#question_type ⇒ Object
Returns the value of attribute question_type.
6 7 8 |
# File 'lib/pandarus/models/quiz_question.rb', line 6 def question_type @question_type end |
#quiz_id ⇒ Object
Returns the value of attribute quiz_id.
6 7 8 |
# File 'lib/pandarus/models/quiz_question.rb', line 6 def quiz_id @quiz_id end |
Class Method Details
.attribute_map ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/pandarus/models/quiz_question.rb', line 9 def self.attribute_map { :id => {:external => "id", :container => false, :type => nil}, :quiz_id => {:external => "quiz_id", :container => false, :type => nil}, :position => {:external => "position", :container => false, :type => nil}, :question_name => {:external => "question_name", :container => false, :type => nil}, :question_type => {:external => "question_type", :container => false, :type => nil}, :question_text => {:external => "question_text", :container => false, :type => nil}, :points_possible => {:external => "points_possible", :container => false, :type => nil}, :correct_comments => {:external => "correct_comments", :container => false, :type => nil}, :incorrect_comments => {:external => "incorrect_comments", :container => false, :type => nil}, :neutral_comments => {:external => "neutral_comments", :container => false, :type => nil}, :answers => {:external => "answers", :container => true, :type => "Enrollment"} } end |