recombee_api_client 1.2.1 → 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/README.md +1 -1
- data/lib/recombee_api_client/api/merge_users.rb +6 -3
- data/lib/recombee_api_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 553bef28ad832e8fd0c6f868cfb9d9c230186c23
|
4
|
+
data.tar.gz: dec8326a4dcf7d9ac2a46405f81d3d4ae1adda43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3bdb86539dd8377bdbe31098b0a49f3f32086a729224aa2c5c6f459e4acc9ec4c8ab27cc47d8ee2b23b2d0440fe6892678d2e036ca69e7fd8048a480746b590
|
7
|
+
data.tar.gz: ab51ef1c571d5ca2a1ebced6de62219d178a06a55a4315277c23c2821bc43b63ca8e7242af7785b4a2dc1e8123e4cb6d8b364342601d5d7a245524a1604c2489
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ module RecombeeApiClient
|
|
13
13
|
#Merging happens between two users referred to as the *source* and the *target*. After the merge, all the interactions of the source user are attributed to the target user, and the source user is **deleted** unless special parameter `keepSourceUser` is set `true`.
|
14
14
|
#
|
15
15
|
class MergeUsers < ApiRequest
|
16
|
-
attr_reader :target_user_id, :source_user_id, :keep_source_user
|
16
|
+
attr_reader :target_user_id, :source_user_id, :keep_source_user, :cascade_create
|
17
17
|
attr_accessor :timeout
|
18
18
|
attr_accessor :ensure_https
|
19
19
|
|
@@ -23,17 +23,19 @@ module RecombeeApiClient
|
|
23
23
|
# - +source_user_id+ -> ID of the target user.
|
24
24
|
#
|
25
25
|
# * *Optional arguments (given as hash optional)*
|
26
|
-
# - +keepSourceUser+ -> If true, the source user will not be deleted, but also kept in the database
|
26
|
+
# - +keepSourceUser+ -> If true, the source user will not be deleted, but also kept in the database.
|
27
|
+
# - +cascadeCreate+ -> Sets whether the user *targetUserId* should be created if not present in the database.
|
27
28
|
#
|
28
29
|
def initialize(target_user_id, source_user_id, optional = {})
|
29
30
|
@target_user_id = target_user_id
|
30
31
|
@source_user_id = source_user_id
|
31
32
|
@keep_source_user = optional['keepSourceUser']
|
33
|
+
@cascade_create = optional['cascadeCreate']
|
32
34
|
@optional = optional
|
33
35
|
@timeout = 1000
|
34
36
|
@ensure_https = false
|
35
37
|
@optional.each do |par, _|
|
36
|
-
fail UnknownOptionalParameter.new(par) unless ["keepSourceUser"].include? par
|
38
|
+
fail UnknownOptionalParameter.new(par) unless ["keepSourceUser","cascadeCreate"].include? par
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -53,6 +55,7 @@ module RecombeeApiClient
|
|
53
55
|
def query_parameters
|
54
56
|
params = {}
|
55
57
|
params['keepSourceUser'] = @optional['keepSourceUser'] if @optional['keepSourceUser']
|
58
|
+
params['cascadeCreate'] = @optional['cascadeCreate'] if @optional['cascadeCreate']
|
56
59
|
params
|
57
60
|
end
|
58
61
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recombee_api_client
|
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
|
- Ondřej Fiedler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|