Sha256: ce938c5d6f9f2bf544993ad16ffd676726a07ba9cf03e2dfb38eb3309d247c5f

Contents?: true

Size: 1.6 KB

Versions: 4

Compression:

Stored size: 1.6 KB

Contents

module Zoomus
  module Actions
    module Webinar

      def webinar_list(*args)
        options = Utils.extract_options!(args)
        Utils.require_params(:host_id, options)
        Utils.process_datetime_params!(:start_time, options)
        Utils.parse_response self.class.post("/webinar/list", :query => options)
      end

      def webinar_create(*args)
        options = Utils.extract_options!(args)
        Utils.require_params([:host_id, :topic], options)
        Utils.process_datetime_params!(:start_time, options)
        Utils.parse_response self.class.post("/webinar/create", :query => options)
      end

      def webinar_update(*args)
        options = Utils.extract_options!(args)
        Utils.require_params([:id, :host_id], options)
        Utils.process_datetime_params!(:start_time, options)
        Utils.parse_response self.class.post("/webinar/update", :query => options)
      end

      def webinar_delete(*args)
        options = Utils.extract_options!(args)
        Utils.require_params([:id, :host_id], options)
        Utils.parse_response self.class.post("/webinar/delete", :query => options)
      end

      def webinar_end(*args)
        options = Utils.extract_options!(args)
        Utils.require_params([:id, :host_id], options)
        Utils.parse_response self.class.post("/webinar/end", :query => options)
      end

      def webinar_get(*args)
        options = Utils.extract_options!(args)
        Utils.require_params([:id, :host_id], options)
        Utils.parse_response self.class.post("/webinar/get", :query => options)
      end

      Utils.define_bang_methods(self)

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
zoomus-0.7.0 lib/zoomus/actions/webinar.rb
zoomus-0.6.0 lib/zoomus/actions/webinar.rb
zoomus-0.5.0 lib/zoomus/actions/webinar.rb
zoomus-0.4.0 lib/zoomus/actions/webinar.rb