pipedrive_jetrockets 0.0.44 → 0.0.45

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
  SHA256:
3
- metadata.gz: 25ade0f4a2b7d7040d3e89fe6ff735fddfb61deb2c01574f005c7737a3c4d0d4
4
- data.tar.gz: 969ab6f77f859bbdcf8c2a73951bae085df372f0d3b0c5524fd9290cca1bd4f7
3
+ metadata.gz: 044dda9a7b797b5f387e1c92b9ea66c9f05b9f4213a5283e97fa36702e8efcf2
4
+ data.tar.gz: 382464edb296f77a1b7dec1a6d439e53912f3d4efc91b4fc2926c348a512e09b
5
5
  SHA512:
6
- metadata.gz: 82c9050bb229b881dfa2619d2f98d5c14c2dd76d7f7001f2b3f0b89aa839ca3ecfb16115dee0ff4ff04ea477c54355adde8b3f41ae07c80cc5537911dbd18457
7
- data.tar.gz: 329ada4a989d1164250515cf949f99234c3b2625e627d5c2b6fd2e4c2c9538e57ae514dbba1afb866c56361b76c990e8e5fb227f8dcd736c381cc45d9e68601d
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 nil unless json_array
59
+ return [] unless json_array
60
60
  json_array.map{|raw|build_entity(raw)}
61
61
  end
62
62
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipedrive_jetrockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44
4
+ version: 0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agafonov Maksim