basecrm 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/basecrm/models/lead.rb +3 -0
- data/lib/basecrm/services/leads_service.rb +2 -1
- data/lib/basecrm/version.rb +1 -1
- metadata +3 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0b22919c8d438aa9b4da0f1aaa32c2036b44940
|
4
|
+
data.tar.gz: e40c299088f7f4571d2603bfc493615e4d30ea7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c96aa403415298f79e1ddd8fe519ef42be3fe1aec5c6ed8d464b7293ba778b5ee9388ca60e249a315dc860685afca21a13545f8cb65042abb5abb7b0912eb6f2
|
7
|
+
data.tar.gz: 32d7764d318c2bffcd01efa4496b8a290ced851b1c9cd793e3893ba8ee91c6cb11418dca824801f8ddaade87899f2b3ebc260aacc6c8bd8b9ea62c8f69d18067
|
data/LICENSE
CHANGED
data/lib/basecrm/models/lead.rb
CHANGED
@@ -60,6 +60,9 @@ module BaseCRM
|
|
60
60
|
# @!attribute [rw] skype
|
61
61
|
# @return [String] Lead's Skype nickname.
|
62
62
|
# attr_accessor :skype
|
63
|
+
# @!attribute [rw] source_id
|
64
|
+
# @return [Integer] Unique identifier of the Source.
|
65
|
+
# attr_accessor :source_id
|
63
66
|
# @!attribute [rw] status
|
64
67
|
# @return [String] Status of the lead.
|
65
68
|
# attr_accessor :status
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module BaseCRM
|
4
4
|
class LeadsService
|
5
|
-
OPTS_KEYS_TO_PERSIST = Set[:address, :custom_fields, :description, :email, :facebook, :fax, :first_name, :industry, :last_name, :linkedin, :mobile, :organization_name, :owner_id, :phone, :skype, :status, :tags, :title, :twitter, :website]
|
5
|
+
OPTS_KEYS_TO_PERSIST = Set[:address, :custom_fields, :description, :email, :facebook, :fax, :first_name, :industry, :last_name, :linkedin, :mobile, :organization_name, :owner_id, :phone, :skype, :source_id, :status, :tags, :title, :twitter, :website]
|
6
6
|
|
7
7
|
def initialize(client)
|
8
8
|
@client = client
|
@@ -34,6 +34,7 @@ module BaseCRM
|
|
34
34
|
# @option options [String] :last_name Last name of the lead.
|
35
35
|
# @option options [String] :organization_name Organization name of the lead.
|
36
36
|
# @option options [Integer] :owner_id User ID. Returns all leads owned by that user.
|
37
|
+
# @option options [Integer] :source_id ID of the Source.
|
37
38
|
# @option options [Integer] :page (1) Page number to start from. Page numbering starts at 1 and omitting the `page` parameter will return the first page.
|
38
39
|
# @option options [Integer] :per_page (25) Number of records to return per page. The default limit is *25* and the maximum number that can be returned is *100*.
|
39
40
|
# @option options [String] :sort_by (updated_at:asc) A field to sort by. The **default** order is **ascending**. If you want to change the sort order to descending, append `:desc` to the field e.g. `sort_by=last_name:desc`.
|
data/lib/basecrm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basecrm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BaseCRM developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -34,9 +34,6 @@ dependencies:
|
|
34
34
|
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1.7'
|
40
37
|
- - ">="
|
41
38
|
- !ruby/object:Gem::Version
|
42
39
|
version: 1.7.7
|
@@ -44,9 +41,6 @@ dependencies:
|
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '1.7'
|
50
44
|
- - ">="
|
51
45
|
- !ruby/object:Gem::Version
|
52
46
|
version: 1.7.7
|
@@ -222,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
216
|
version: '0'
|
223
217
|
requirements: []
|
224
218
|
rubyforge_project:
|
225
|
-
rubygems_version: 2.
|
219
|
+
rubygems_version: 2.6.13
|
226
220
|
signing_key:
|
227
221
|
specification_version: 4
|
228
222
|
summary: BaseCRM Official API V2 library client for ruby
|