Sha256: a15b7d507a08b6bf3d4baa64289c11579fdd40c12c739505dd202ebe633d12a5

Contents?: true

Size: 1.19 KB

Versions: 2

Compression:

Stored size: 1.19 KB

Contents

module Zoomus
  module Actions
    module Meeting

      def meeting_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("/meeting/list", :query => options)
      end

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

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

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

      Utils.define_bang_methods(self)

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zoomus-0.2.1 lib/zoomus/actions/meeting.rb
zoomus-0.2.0 lib/zoomus/actions/meeting.rb