Class: Pandarus::Quiz

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

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from ModelBase

#assign, #attr, #has_attr?, #initialize, #inspect, #to_body, #vivify

Constructor Details

This class inherits a constructor from Pandarus::ModelBase

Instance Attribute Details

#access_codeObject

Returns the value of attribute access_code.



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

def access_code
  @access_code
end

#all_datesObject

Returns the value of attribute all_dates.



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

def all_dates
  @all_dates
end

#allowed_attemptsObject

Returns the value of attribute allowed_attempts.



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

def allowed_attempts
  @allowed_attempts
end

#assignment_group_idObject

Returns the value of attribute assignment_group_id.



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

def assignment_group_id
  @assignment_group_id
end

#cant_go_backObject

Returns the value of attribute cant_go_back.



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

def cant_go_back
  @cant_go_back
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#due_atObject

Returns the value of attribute due_at.



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

def due_at
  @due_at
end

#hide_correct_answers_atObject

Returns the value of attribute hide_correct_answers_at.



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

def hide_correct_answers_at
  @hide_correct_answers_at
end

#hide_resultsObject

Returns the value of attribute hide_results.



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

def hide_results
  @hide_results
end

#html_urlObject

Returns the value of attribute html_url.



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

def html_url
  @html_url
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#ip_filterObject

Returns the value of attribute ip_filter.



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

def ip_filter
  @ip_filter
end

#lock_atObject

Returns the value of attribute lock_at.



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

def lock_at
  @lock_at
end

#lock_explanationObject

Returns the value of attribute lock_explanation.



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

def lock_explanation
  @lock_explanation
end

#lock_infoObject

Returns the value of attribute lock_info.



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

def lock_info
  @lock_info
end

#locked_for_userObject

Returns the value of attribute locked_for_user.



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

def locked_for_user
  @locked_for_user
end

#mobile_urlObject

Returns the value of attribute mobile_url.



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

def mobile_url
  @mobile_url
end

#one_question_at_a_timeObject

Returns the value of attribute one_question_at_a_time.



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

def one_question_at_a_time
  @one_question_at_a_time
end

#permissionsObject

Returns the value of attribute permissions.



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

def permissions
  @permissions
end

#points_possibleObject

Returns the value of attribute points_possible.



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

def points_possible
  @points_possible
end

#publishedObject

Returns the value of attribute published.



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

def published
  @published
end

#question_countObject

Returns the value of attribute question_count.



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

def question_count
  @question_count
end

#quiz_typeObject

Returns the value of attribute quiz_type.



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

def quiz_type
  @quiz_type
end

#scoring_policyObject

Returns the value of attribute scoring_policy.



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

def scoring_policy
  @scoring_policy
end

#show_correct_answersObject

Returns the value of attribute show_correct_answers.



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

def show_correct_answers
  @show_correct_answers
end

#show_correct_answers_atObject

Returns the value of attribute show_correct_answers_at.



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

def show_correct_answers_at
  @show_correct_answers_at
end

#shuffle_answersObject

Returns the value of attribute shuffle_answers.



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

def shuffle_answers
  @shuffle_answers
end

#speedgrader_urlObject

Returns the value of attribute speedgrader_url.



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

def speedgrader_url
  @speedgrader_url
end

#time_limitObject

Returns the value of attribute time_limit.



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

def time_limit
  @time_limit
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

#unlock_atObject

Returns the value of attribute unlock_at.



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

def unlock_at
  @unlock_at
end

#unpublishableObject

Returns the value of attribute unpublishable.



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

def unpublishable
  @unpublishable
end

Class Method Details

.attribute_mapObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/pandarus/models/quiz.rb', line 9

def self.attribute_map
  {
    :id => {:external => "id", :container => false, :type => "Integer"},
    :title => {:external => "title", :container => false, :type => "String"},
    :html_url => {:external => "html_url", :container => false, :type => "String"},
    :mobile_url => {:external => "mobile_url", :container => false, :type => "String"},
    :description => {:external => "description", :container => false, :type => "String"},
    :quiz_type => {:external => "quiz_type", :container => false, :type => "String"},
    :assignment_group_id => {:external => "assignment_group_id", :container => false, :type => "Integer"},
    :time_limit => {:external => "time_limit", :container => false, :type => "Integer"},
    :shuffle_answers => {:external => "shuffle_answers", :container => false, :type => nil},
    :hide_results => {:external => "hide_results", :container => false, :type => "String"},
    :show_correct_answers => {:external => "show_correct_answers", :container => false, :type => nil},
    :show_correct_answers_at => {:external => "show_correct_answers_at", :container => false, :type => "DateTime"},
    :hide_correct_answers_at => {:external => "hide_correct_answers_at", :container => false, :type => "DateTime"},
    :scoring_policy => {:external => "scoring_policy", :container => false, :type => "String"},
    :allowed_attempts => {:external => "allowed_attempts", :container => false, :type => "Integer"},
    :one_question_at_a_time => {:external => "one_question_at_a_time", :container => false, :type => nil},
    :question_count => {:external => "question_count", :container => false, :type => "Integer"},
    :points_possible => {:external => "points_possible", :container => false, :type => "Integer"},
    :cant_go_back => {:external => "cant_go_back", :container => false, :type => nil},
    :access_code => {:external => "access_code", :container => false, :type => "String"},
    :ip_filter => {:external => "ip_filter", :container => false, :type => "String"},
    :due_at => {:external => "due_at", :container => false, :type => "DateTime"},
    :lock_at => {:external => "lock_at", :container => false, :type => "DateTime"},
    :unlock_at => {:external => "unlock_at", :container => false, :type => "DateTime"},
    :published => {:external => "published", :container => false, :type => nil},
    :unpublishable => {:external => "unpublishable", :container => false, :type => nil},
    :locked_for_user => {:external => "locked_for_user", :container => false, :type => nil},
    :lock_info => {:external => "lock_info", :container => false, :type => "LockInfo"},
    :lock_explanation => {:external => "lock_explanation", :container => false, :type => "String"},
    :speedgrader_url => {:external => "speedgrader_url", :container => false, :type => "String"},
    :permissions => {:external => "permissions", :container => false, :type => "QuizPermissions"},
    :all_dates => {:external => "all_dates", :container => false, :type => "AssignmentDate"}

  }
end