Class: Pandarus::QuizQuestion

Inherits:
ModelBase show all
Defined in:
lib/pandarus/models/quiz_question.rb

Instance Attribute Summary collapse

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

#answersObject

Returns the value of attribute answers.



6
7
8
# File 'lib/pandarus/models/quiz_question.rb', line 6

def answers
  @answers
end

#correct_commentsObject

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

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/pandarus/models/quiz_question.rb', line 6

def id
  @id
end

#incorrect_commentsObject

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_commentsObject

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_possibleObject

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

#positionObject

Returns the value of attribute position.



6
7
8
# File 'lib/pandarus/models/quiz_question.rb', line 6

def position
  @position
end

#question_nameObject

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_textObject

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_typeObject

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_idObject

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_mapObject



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