pipedrive_jetrockets 0.0.44 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pipedrive_jetrockets/person.rb +1 -1
- data/lib/pipedrive_jetrockets/service.rb +1 -1
- 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: 044dda9a7b797b5f387e1c92b9ea66c9f05b9f4213a5283e97fa36702e8efcf2
|
4
|
+
data.tar.gz: 382464edb296f77a1b7dec1a6d439e53912f3d4efc91b4fc2926c348a512e09b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4f0a10fc500a8feff64b1c1382f69e7b8a21fc8fc0688a8a840ef06cdb749bbb951b6ebe1ee034bb2dc4cf697ae7df252a4b56d844bdb1c2914c2c1a354139f
|
7
|
+
data.tar.gz: c0856cd7f76fd467e70031fe7a796211eeff9b6c9ab567430ae17105ef8db08f97773c756210140535920eba06415b7fadf1463918de662a0ad0f443304f4590
|
@@ -2,7 +2,7 @@ require 'pipedrive_jetrockets/entity'
|
|
2
2
|
|
3
3
|
module PipedriveJetrockets
|
4
4
|
class Person < Entity
|
5
|
-
attr_accessor :name, :email, :phone
|
5
|
+
attr_accessor :id, :name, :email, :phone, :open_deals_count, :closed_deals_count
|
6
6
|
def initialize(hash)
|
7
7
|
super
|
8
8
|
@email = hash['email'].first['value'] if hash['email']
|
@@ -56,7 +56,7 @@ module PipedriveJetrockets
|
|
56
56
|
uri = build_uri({term: email, search_by_email: true }, 'find')
|
57
57
|
response = HTTP.get(uri)
|
58
58
|
json_array = ::JSON.parse(response)['data']
|
59
|
-
return
|
59
|
+
return [] unless json_array
|
60
60
|
json_array.map{|raw|build_entity(raw)}
|
61
61
|
end
|
62
62
|
|