Sha256: 766bd43080216b78a1ea004e0bcacb907c50f4e311beaeed3f9d494e694381ee

Contents?: true

Size: 1.72 KB

Versions: 1

Compression:

Stored size: 1.72 KB

Contents

module Zoomus
  module Actions
    module User

      def user_list(*args)
        options = Utils.extract_options!(args)
        Utils.parse_response self.class.post('/user/list', :query => options)
      end

      def user_pending(*args)
        options = Utils.extract_options!(args)
        Utils.parse_response self.class.post('/user/pending', :query => options)
      end

      def user_create(*args)
        options = Utils.extract_options!(args)
        Utils.require_params([:type, :email], options)
        Utils.parse_response self.class.post('/user/create', :query => options)
      end

      def user_delete(*args)
        options = Utils.extract_options!(args)
        Utils.require_params([:id], options)
        Utils.parse_response self.class.post('/user/delete', :query => options)
      end

      def user_custcreate(*args)
        options = Utils.extract_options!(args)
        Utils.require_params([:type, :email], options)
        Utils.parse_response self.class.post('/user/custcreate', :query => options)
      end

      def user_update(*args)
        options = Utils.extract_options!(args)
        Utils.require_params([:id], options)
        Utils.parse_response self.class.post('/user/update', :query => options)
      end

      def user_get(*args)
        options = Utils.extract_options!(args)
        Utils.require_params([:id], options)
        Utils.parse_response self.class.post('/user/get', :query => options)
      end

      def user_getbyemail(*args)
        options = Utils.extract_options!(args)
        Utils.require_params([:email, :login_type], options)
        Utils.parse_response self.class.post('/user/getbyemail', :query => options)
      end

      Utils.define_bang_methods(self)
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zoomus-0.4.0 lib/zoomus/actions/user.rb