Module: IVLE::Poll
- Included in:
- API
- Defined in:
- lib/IVLE/api/poll.rb
Instance Method Summary collapse
- #poll_get_voted_user(poll_id, poll_question_id, poll_question_option_id) ⇒ Object
- #poll_get_voted_user_other(poll_id, poll_question_id, poll_question_option_id) ⇒ Object
- #poll_submit_vote(poll_id, poll_question_id, poll_question_option_id, other_text) ⇒ Object
- #polls(course_id, poll_id, title_only = false) ⇒ Object
Instance Method Details
#poll_get_voted_user(poll_id, poll_question_id, poll_question_option_id) ⇒ Object
11 12 13 |
# File 'lib/IVLE/api/poll.rb', line 11 def poll_get_voted_user(poll_id, poll_question_id, poll_question_option_id) api 'Poll_GetVotedUser', pollid: poll_id, pollquestionid: poll_question_id, pollquestionoptionid: poll_question_option_id end |
#poll_get_voted_user_other(poll_id, poll_question_id, poll_question_option_id) ⇒ Object
15 16 17 |
# File 'lib/IVLE/api/poll.rb', line 15 def poll_get_voted_user_other(poll_id, poll_question_id, poll_question_option_id) api 'Poll_GetVotedUser_Other', pollid: poll_id, pollquestionid: poll_question_id, pollquestionoptionid: poll_question_option_id end |
#poll_submit_vote(poll_id, poll_question_id, poll_question_option_id, other_text) ⇒ Object
7 8 9 |
# File 'lib/IVLE/api/poll.rb', line 7 def poll_submit_vote(poll_id, poll_question_id, poll_question_option_id, other_text) api_post 'Poll_SubmitVote_JSON', pollid: poll_id, pollquestionid: poll_question_id, pollquestionoptionid: poll_question_option_id, othertext: other_text end |
#polls(course_id, poll_id, title_only = false) ⇒ Object
3 4 5 |
# File 'lib/IVLE/api/poll.rb', line 3 def polls(course_id, poll_id, title_only=false) api 'Polls', courseid: course_id, pollid: poll_id, titleonly: title_only end |