pipedrive_jetrockets 0.0.55 → 0.0.56

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e872b160dc14ea553d1a7a11c40e927d496e9a05bc90683c7ec78ed089bc6c5a
4
- data.tar.gz: 6e860c042f2feb5abb992c6a13a0a8243dd5e338079becf8b086a2905d6060ed
3
+ metadata.gz: 67850907e5a56321bb9b2940ca76d6adad7b5fb5a0e565f681c1819aa8a6d144
4
+ data.tar.gz: 4c40f18993ada54bc6d6295a96413b89aee292facd13178f9e6232e59f46f5d0
5
5
  SHA512:
6
- metadata.gz: f4e496807253c7a407c8c25d667504c56c81b93d71375eb3a4c83769b7fa1f86fa93248d01a3db8f5d740645f2daebfe23558a973f1c74274d7070a0192f5bb0
7
- data.tar.gz: 4770210888593712da635721dbea71476e7947984bd8f302f51a05f0f588f1af3212271c256db08392729930f9120dbfc7555883d095fc55591e3aa0ccb69423
6
+ metadata.gz: c9a5ea7e4e0dd1bbc597f2080fec31b4f87e82e79c594ce4f6ca2725d0ce2724639866253ee0528482e15682000cd054aa93fde008bf77bfd7f984eb8ba7c9b6
7
+ data.tar.gz: f62855fb63e7a70ac1a7e91f6941a0bebddb6f07e2fe2c402498d3e275db66091cc9750ab884f8a37e79a21ab21942c713d2f1d54950bfc1bb9aa47d2093bcf0
@@ -1,12 +1,21 @@
1
1
  module PipedriveJetrockets
2
2
  class Person < Entity
3
- attr_accessor :id, :name, :email, :phone, :open_deals_count, :closed_deals_count,
3
+ attr_accessor :id, :name, :email, :organization, :phone, :open_deals_count, :closed_deals_count,
4
4
  :add_time, :update_time
5
5
  def initialize(hash)
6
6
  super
7
7
  @email = hash['email'].first['value'] if hash['email']
8
8
  @phone = hash['phone'].first['value'] if hash['phone']
9
9
 
10
+ org_id = hash['org_id']
11
+ if org_id
12
+ if org_id.kind_of? Integer
13
+ @organization = Pipedrive.organizations.find(org_id)
14
+ else
15
+ @organization = Organization.new(org_id)
16
+ end
17
+ end
18
+
10
19
  @id = hash['value'] if hash['value'].present?
11
20
  end
12
21
  end
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.55
4
+ version: 0.0.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agafonov Maksim