teamdrive_api 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b52d696a6b145a267406dc5855d29db39b55d54
4
- data.tar.gz: 7bb13316c5320564084708ded4def7f4b8d9b0fb
3
+ metadata.gz: 15376afa64dfc8c22ae13e7fa17a7db37a024c07
4
+ data.tar.gz: 696fa1373cb02aaf07268a445826bfc812832e0d
5
5
  SHA512:
6
- metadata.gz: d82dcdf0eaa231103b7c9c4a0d2f85cc423c0c9b656ac3e05818c19405362c9916d3f37f2938eb10d341187c6f6da00408a665ef1bb2c62c998c73c556e4230c
7
- data.tar.gz: 7625087e1f50d7b585f6f109dd7080bd58797c98126fb2c495a93dcf0769dac8f0f3aef19610d03d859c90794b81da56497db987476a2b195b1b97aeccc20add
6
+ metadata.gz: 7dadbf7786a00898f8dd1bcc7aa274287946885044ae70eef6f72a47cff262c7fdfadbc2856413ab03c6248092ae695997dc785ef9be404fa1794030b14f9fbb
7
+ data.tar.gz: 9275a3033668d93e2b4807c80c1ced9bc393277d8efa65d9764f666a2b03248ca0a014addf8c88c226bf6c8dd48cac0f0767b64867c11b1d5f8aefa2cb119f2d
@@ -24,5 +24,22 @@ module TeamdriveApi
24
24
  }
25
25
  return res[:intresult].eql?('0')
26
26
  end
27
+
28
+ # Search user
29
+ #
30
+ # @param [Hash] query the search query.
31
+ # @option query [String] :username
32
+ # @option query [String] :email
33
+ # @option query [String] :startid (0)
34
+ # @option query [Boolean] :showdevice (false)
35
+ # @option query [Boolean] :onlyownusers (false)
36
+ def search_user(query = {})
37
+ fail ArgumentError if query.keys.length < 1
38
+ query = {
39
+ showdevice: false,
40
+ onlyownusers: false
41
+ }.merge(query)
42
+ send_request :searchuser, query
43
+ end
27
44
  end
28
45
  end
@@ -1,3 +1,3 @@
1
1
  module TeamdriveApi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamdrive_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Hutter