pipe_drive_ruby_wrapper 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/pipe_drive/base.rb +7 -1
- data/lib/pipe_drive/send_request.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29e4e4cec3334f54ea714b67fd93544999d7f34df879045f8c5b334ed3c01e5e
|
4
|
+
data.tar.gz: 5ff11681e7d526fab3cf43a61d9c40eec25f58c66c50fb68d424e1abf7c86d30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea7e3fa4d93bd8d84775c79ea127a54709e589fa0bbd197f1dd71a00fb6ad2f695fd8c8678e96c8d0cde1e3b0e6b57bf71625f2284fdcc281d430b42d8428346
|
7
|
+
data.tar.gz: 8fedaf080537ebff2b9a5b7d547e3ed14f5aaa012ccdb975b67839acca30f02670a611b06ae9b285623cc1597560be102c35d62d54f2eda8c251e90524f31863
|
data/README.md
CHANGED
data/lib/pipe_drive/base.rb
CHANGED
@@ -58,7 +58,13 @@ module PipeDrive
|
|
58
58
|
|
59
59
|
def delete(id)
|
60
60
|
path = "/#{resource_name}s/#{id}"
|
61
|
-
requester.http_del(path){|result|
|
61
|
+
requester.http_del(path){|result| result}
|
62
|
+
end
|
63
|
+
|
64
|
+
def bulk_delete(ids)
|
65
|
+
path = "/#{resource_name}s"
|
66
|
+
params = {ids: ids.map(&:to_s).join(',')}
|
67
|
+
requester.http_del(path, params){|result| result}
|
62
68
|
end
|
63
69
|
|
64
70
|
def search_and_setup_by(type, opts, strict=false)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pipe_drive_ruby_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JiaRou Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|