pipe_drive_ruby_wrapper 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pipe_drive/base.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64249eecbf21b3bf2973f99ef047721e7dc4a9544ae626b9d0bb96f59aaa1aac
|
4
|
+
data.tar.gz: 401a712b0dc1ec016df7848794391fb6c68928858b1bc7add7f5cebaa960fbdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c6d0c1823fc39276e1246ffe36f9f43ce45f74cf3b3da46b97ea6cb5d7ff52fc3a8c3c1c6b74fde5a0cd09cfc61970b4332bd8ed0ef736f46d4860398eb88ca
|
7
|
+
data.tar.gz: 1a647dcd66a7ed751a4babc8b036f98cb4a6a169153df7126ce44d2490de3c4f6a421bb82288cd668485c8ed2b9c5135cad51c447551e0aae0832146c7d19ec5
|
data/lib/pipe_drive/base.rb
CHANGED
@@ -14,9 +14,9 @@ module PipeDrive
|
|
14
14
|
|
15
15
|
def update(opts)
|
16
16
|
path = "/#{self.class.resource_name}s/#{id}"
|
17
|
-
opts.transform_keys!{|key| field_keys[key] || key}
|
17
|
+
opts.transform_keys!{|key| self.class.field_keys[key] || key}
|
18
18
|
requester.http_put(path, opts) do |result|
|
19
|
-
new(result)
|
19
|
+
self.class.new(result)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|