Sha256: c50c2760354b54bc1e4c41eeb6d24b174dfc49a28e35298e61749913af4ec610
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
module Tamber class User < APIResource extend Tamber::APIOperations::Create extend Tamber::APIOperations::Save extend Tamber::APIOperations::Retrieve extend Tamber::APIOperations::List def self.update(params={}) warn "[DEPRECATION] `User.update` is deprecated. Please use `User.save` instead." response = request(:post, url + '/update', params) Util.convert_to_tamber_object(response) end def self.search(params={}) warn "[DEPRECATION] `User.search` is deprecated. Please use `User.list` instead." response = request(:post, url + '/list', params) Util.convert_to_tamber_object(response) end def self.merge(params={}) response = request(:post, url + '/merge', params) Util.convert_to_tamber_object(response) end # Deprecated in api version 2020-6-11 def self.update(params={}) warn "[DEPRECATION] `User.update` is deprecated. Please use `User.save` instead." response = request(:post, url + '/save', params) Util.convert_to_tamber_object(response) end def self.tests(params={}) response = request(:get, url + '/tests', params) Util.convert_to_tamber_object(response) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tamber-0.2.2 | lib/tamber/user.rb |