Sha256: f16461b450129673a5e701c9cac5902209f2495864fd2b3208f27f14457923c3

Contents?: true

Size: 897 Bytes

Versions: 2

Compression:

Stored size: 897 Bytes

Contents

module IVLE
  module Poll
    def polls(course_id, poll_id, title_only=false)
      api 'Polls', courseid: course_id, pollid: poll_id, titleonly: title_only
    end

    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

    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

    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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
IVLE-0.0.2 lib/IVLE/api/poll.rb
IVLE-0.0.1 lib/IVLE/api/poll.rb