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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pipe_drive/base.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9b50ed4edd763c946020df487a8496cfd93f735bbe56997852c275c06f9b167
4
- data.tar.gz: 6b764e401e857eca56fdb153ff34321b47f2d6b822e5fabcdcbf9a1f2db87f8f
3
+ metadata.gz: 64249eecbf21b3bf2973f99ef047721e7dc4a9544ae626b9d0bb96f59aaa1aac
4
+ data.tar.gz: 401a712b0dc1ec016df7848794391fb6c68928858b1bc7add7f5cebaa960fbdf
5
5
  SHA512:
6
- metadata.gz: 2619b139fae104ad62b4d702437c06144dbffce66b159d56d27e1ec064016e429af739f3ed6b14ce6858a3f7fb541dc0343ed3a9721ac1e6600dc66df9bee580
7
- data.tar.gz: '092850318dd9d7c152b40c33a1a5d5dd6ef0ab5c75faebddf53a3185563c27cb8949bc9e24952517ed846146fe79101a65df080949feedc3c1588a9dc2b1f286'
6
+ metadata.gz: 8c6d0c1823fc39276e1246ffe36f9f43ce45f74cf3b3da46b97ea6cb5d7ff52fc3a8c3c1c6b74fde5a0cd09cfc61970b4332bd8ed0ef736f46d4860398eb88ca
7
+ data.tar.gz: 1a647dcd66a7ed751a4babc8b036f98cb4a6a169153df7126ce44d2490de3c4f6a421bb82288cd668485c8ed2b9c5135cad51c447551e0aae0832146c7d19ec5
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipe_drive_ruby_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - JiaRou Lee