Sha256: dfb8beaf320488d94c281d1918db66ab753d141236795f4c3c37a1bedd40d438

Contents?: true

Size: 554 Bytes

Versions: 2

Compression:

Stored size: 554 Bytes

Contents

module IVLE
  module OpenWebcastLectures
    def open_webcasts(acad_year, semester, title_only=false, media_channel_id=nil)
      params = { acadyear: acad_year, semester: semester, titleonly: title_only }
      params.merge!({ mediachannelid: media_channel_id }) unless media_channel_id.nil?
      api 'OpenWebcasts', params
    end

    def open_webcast_add_log(media_channel_id, media_channel_item_id)
      api_post 'OpenWebcast_AddLog_JSON', mediachannelid: media_channel_id, mediachannelitemid: media_channel_item_id
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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