pipedrive_jetrockets 0.0.58 → 0.0.59

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: 5773e338c9994800a021297c81a44a7bc8dd686b1c3e2830c1104349afb68bc3
4
- data.tar.gz: 9e7f35397bcc1ca2f0ca54335b766e06174da9b44b97c840771c4793ce87ac51
3
+ metadata.gz: 4777bf5f36fcf7eb766e1b5fe19541ca1b2c6f7343f3094ab2a833aebe160da1
4
+ data.tar.gz: 7455a9af7530f0f589649b457c7e37d738470fc1d25d59c767378a6e85186312
5
5
  SHA512:
6
- metadata.gz: 814af1fa10088a108555fc71888e1ccdc18362ec9475e07d0f1ef02114ee23bf7cd36dddb97ed07729062e5cca8af5b323cbe95455b4b45e952d1a0eb8f9c371
7
- data.tar.gz: 9572ac44fd882e44fc1b6f7c0aefb42ea1bcc05ab85714500391a97bdf617f566d2bfe39be0943ede4de9f8458a82f88c9fffed2bdd2e3dfc9d7dcb6fd7cc1b8
6
+ metadata.gz: 91b441af6820f33ae0b7120ee63e4ad0e28603cd28eea950b9403d036329b907cfcf6009e2ee6bb94604a1310195479b38e4c119c85cb990f80f8da97b977bec
7
+ data.tar.gz: 35f5d1e49e262240142918fb7da0729a5dd885a4f4e328428290d82331ccd0767f87f27e9fcea04cd7dfb00fbbfddb22c34a66916223eebcc47d02fabbc20394
@@ -3,8 +3,6 @@ require 'pipedrive_jetrockets/person'
3
3
 
4
4
  module PipedriveJetrockets
5
5
  class Deal < Entity
6
- attr_accessor :id, :organization, :title, :value, :currency, :status,
7
- :stage_id, :person, :add_time, :update_time
8
6
  def initialize(hash)
9
7
  @@key_name_hash ||= Pipedrive.deal_fields.key_name_hash
10
8
  super(hash.except(*@@key_name_hash.keys))
@@ -1,5 +1,4 @@
1
1
  module PipedriveJetrockets
2
2
  class DealField < Entity
3
- attr_accessor :id, :key, :name, :edit_flag
4
3
  end
5
4
  end
@@ -1,7 +1,10 @@
1
1
  module PipedriveJetrockets
2
2
  class Entity
3
3
  def initialize(hash)
4
- hash.each {|k,v| instance_variable_set("@#{k}",v)}
4
+ hash.each do |k,v|
5
+ instance_variable_set("@#{k}",v)
6
+ self.class.class_eval {attr_accessor k}
7
+ end
5
8
  end
6
9
  end
7
10
  end
@@ -1,5 +1,4 @@
1
1
  module PipedriveJetrockets
2
2
  class Note < Entity
3
- attr_accessor :id, :deal_id, :person_id, :org_id, :content, :add_time, :update_time
4
3
  end
5
4
  end
@@ -1,8 +1,5 @@
1
1
  module PipedriveJetrockets
2
2
  class Organization < Entity
3
- attr_accessor :id, :name, :owner_id, :address, :cc_email, :add_time, :update_time,
4
- :closed_deals_count
5
-
6
3
  def initialize(hash)
7
4
  @@key_name_hash ||= Pipedrive.organization_fields.key_name_hash
8
5
  super(hash.except(*@@key_name_hash.keys))
@@ -1,5 +1,4 @@
1
1
  module PipedriveJetrockets
2
2
  class OrganizationField < Entity
3
- attr_accessor :id, :key, :name, :edit_flag
4
3
  end
5
4
  end
@@ -1,7 +1,5 @@
1
1
  module PipedriveJetrockets
2
2
  class Person < Entity
3
- attr_accessor :id, :name, :email, :organization, :phone, :open_deals_count, :closed_deals_count,
4
- :add_time, :update_time
5
3
  def initialize(hash)
6
4
  super
7
5
  @email = hash['email'].first['value'] if hash['email']
@@ -1,5 +1,4 @@
1
1
  module PipedriveJetrockets
2
2
  class Pipeline < Entity
3
- attr_accessor :id, :name, :add_time, :update_time
4
3
  end
5
4
  end
@@ -1,7 +1,5 @@
1
1
  module PipedriveJetrockets
2
2
  class Stage < Entity
3
- attr_accessor :id, :name, :pipeline_id, :add_time, :update_time
4
-
5
3
  def pipeline
6
4
  Pipedrive.pipelines.find(self.pipeline_id)
7
5
  end
@@ -1,5 +1,4 @@
1
1
  module PipedriveJetrockets
2
2
  class User < Entity
3
- attr_accessor :id, :name, :email, :phone
4
3
  end
5
4
  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.58
4
+ version: 0.0.59
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agafonov Maksim