Sha256: 9b41356d0691023f1c32f72011d979cfc9d285cc489eb6fedf9ce4d5f13852bb

Contents?: true

Size: 835 Bytes

Versions: 2

Compression:

Stored size: 835 Bytes

Contents

module IVLE
  module Consultation
    def consultation_module_facilitators_with_slots(course_id, include_slots, slot_type)
      api 'Consultation_ModuleFacilitatorsWithSlots', courseid: course_id, includeslots: include_slots, slottype: slot_type
    end

    def consultation_slots(lec_id, slot_type)
      api 'ConsultationSlots', lecid: lec_id, slottype: slot_type
    end

    def consultation_signed_up_slots
      api 'Consultation_SignedUpSlots'
    end

    def consultation_sign_up(consultation_id)
      # WTF is this? Gosh, just pass in an additional format parameter!
      api_post 'Consultation_SignUp_JSON', consultationid: consultation_id
    end

    def consultation_cancel_slot(consultation_id)
      api_post 'Consultation_CancelSlot_JSON', consultationid: consultation_id
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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