attune 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/attune/models/blacklist.rb +16 -16
- data/lib/attune/models/blacklist_params.rb +10 -10
- data/lib/attune/models/ranking_params.rb +23 -23
- data/lib/attune/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: 60683681bc9f3dc66d095e5326f5e279581c15be
|
4
|
+
data.tar.gz: 6b48fd4f2c64a0a7b8965974a021d0caeacf07e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5132d7c1c25f5df5888dbe7e6118634c010968329e7889462d0f2d33bd2231a02ce48ac0aa1ac4782a8957f825a98717a0509e76093d082e0b71d0f1268890eb
|
7
|
+
data.tar.gz: c0b58aeba07bdd0550cd4afc250df2f2dfe3f206a5a56ec918c6efa13ddab6597e192cb6dfe46a9118c11523960fe22729dade5ca533d744dbe33e30c76665ba
|
@@ -3,29 +3,26 @@ module Attune
|
|
3
3
|
#
|
4
4
|
#
|
5
5
|
# @attr [String] id
|
6
|
-
# @attr [Boolean] disabled
|
7
|
-
# @attr [String] entity_type
|
8
|
-
# @attr [String] start_date
|
9
6
|
# @attr [String] end_date
|
7
|
+
# @attr [String] start_date
|
8
|
+
# @attr [String] entity_type
|
10
9
|
# @attr [String] consumer
|
11
10
|
# @attr [Array<String>] ids
|
12
11
|
# @attr [String] created_date
|
13
12
|
# @attr [String] updated_date
|
14
13
|
# @attr [String] scope
|
14
|
+
# @attr [Boolean] disabled
|
15
15
|
class Blacklist
|
16
16
|
attr_accessor :id
|
17
17
|
|
18
18
|
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
|
22
|
-
attr_accessor :entity_type
|
19
|
+
attr_accessor :end_date
|
23
20
|
|
24
21
|
|
25
22
|
attr_accessor :start_date
|
26
23
|
|
27
24
|
|
28
|
-
attr_accessor :
|
25
|
+
attr_accessor :entity_type
|
29
26
|
|
30
27
|
|
31
28
|
attr_accessor :consumer
|
@@ -43,18 +40,19 @@ module Attune
|
|
43
40
|
attr_accessor :scope
|
44
41
|
|
45
42
|
|
43
|
+
attr_accessor :disabled
|
44
|
+
|
45
|
+
|
46
46
|
def initialize(attributes = {})
|
47
47
|
return if attributes.empty?
|
48
48
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
49
49
|
@id = attributes["id"] || attributes[:"id"]
|
50
50
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
51
|
-
@
|
52
|
-
# Workaround since JSON.parse has accessors as strings rather than symbols
|
53
|
-
@entity_type = attributes["entityType"] || attributes[:"entity_type"]
|
51
|
+
@end_date = attributes["endDate"] || attributes[:"end_date"]
|
54
52
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
55
53
|
@start_date = attributes["startDate"] || attributes[:"start_date"]
|
56
54
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
57
|
-
@
|
55
|
+
@entity_type = attributes["entityType"] || attributes[:"entity_type"]
|
58
56
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
59
57
|
@consumer = attributes["consumer"] || attributes[:"consumer"]
|
60
58
|
value = attributes["ids"] || attributes[:"ids"]
|
@@ -68,6 +66,8 @@ module Attune
|
|
68
66
|
@updated_date = attributes["updatedDate"] || attributes[:"updated_date"]
|
69
67
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
70
68
|
@scope = attributes["scope"] || attributes[:"scope"]
|
69
|
+
# Workaround since JSON.parse has accessors as strings rather than symbols
|
70
|
+
@disabled = attributes["disabled"] || attributes[:"disabled"]
|
71
71
|
|
72
72
|
|
73
73
|
end
|
@@ -87,15 +87,15 @@ module Attune
|
|
87
87
|
# :internal => :external
|
88
88
|
ATTRIBUTE_MAP = {
|
89
89
|
:id => :id,
|
90
|
-
:disabled => :disabled,
|
91
|
-
:entity_type => :entityType,
|
92
|
-
:start_date => :startDate,
|
93
90
|
:end_date => :endDate,
|
91
|
+
:start_date => :startDate,
|
92
|
+
:entity_type => :entityType,
|
94
93
|
:consumer => :consumer,
|
95
94
|
:ids => :ids,
|
96
95
|
:created_date => :createdDate,
|
97
96
|
:updated_date => :updatedDate,
|
98
|
-
:scope => :scope
|
97
|
+
:scope => :scope,
|
98
|
+
:disabled => :disabled
|
99
99
|
|
100
100
|
}
|
101
101
|
end
|
@@ -2,16 +2,13 @@ module Attune
|
|
2
2
|
module Model
|
3
3
|
#
|
4
4
|
#
|
5
|
-
# @attr [Array<Attune::Model::ScopeEntry>] scope
|
6
5
|
# @attr [String] entity_type
|
7
6
|
# @attr [Array<String>] ids
|
8
7
|
# @attr [Boolean] disabled
|
8
|
+
# @attr [Array<Attune::Model::ScopeEntry>] scope
|
9
9
|
# @attr [String] active_from
|
10
10
|
# @attr [String] active_to
|
11
11
|
class BlacklistParams
|
12
|
-
attr_accessor :scope
|
13
|
-
|
14
|
-
|
15
12
|
attr_accessor :entity_type
|
16
13
|
|
17
14
|
|
@@ -21,6 +18,9 @@ module Attune
|
|
21
18
|
attr_accessor :disabled
|
22
19
|
|
23
20
|
|
21
|
+
attr_accessor :scope
|
22
|
+
|
23
|
+
|
24
24
|
attr_accessor :active_from
|
25
25
|
|
26
26
|
|
@@ -29,11 +29,6 @@ module Attune
|
|
29
29
|
|
30
30
|
def initialize(attributes = {})
|
31
31
|
return if attributes.empty?
|
32
|
-
value = attributes["scope"] || attributes[:"scope"]
|
33
|
-
if value.is_a?(Array)
|
34
|
-
@scope = value.map{ |v| ScopeEntry.new(v) }
|
35
|
-
|
36
|
-
end
|
37
32
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
38
33
|
@entity_type = attributes["entityType"] || attributes[:"entity_type"]
|
39
34
|
value = attributes["ids"] || attributes[:"ids"]
|
@@ -43,6 +38,11 @@ module Attune
|
|
43
38
|
end
|
44
39
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
45
40
|
@disabled = attributes["disabled"] || attributes[:"disabled"]
|
41
|
+
value = attributes["scope"] || attributes[:"scope"]
|
42
|
+
if value.is_a?(Array)
|
43
|
+
@scope = value.map{ |v| ScopeEntry.new(v) }
|
44
|
+
|
45
|
+
end
|
46
46
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
47
47
|
@active_from = attributes["activeFrom"] || attributes[:"active_from"]
|
48
48
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
@@ -65,10 +65,10 @@ module Attune
|
|
65
65
|
private
|
66
66
|
# :internal => :external
|
67
67
|
ATTRIBUTE_MAP = {
|
68
|
-
:scope => :scope,
|
69
68
|
:entity_type => :entityType,
|
70
69
|
:ids => :ids,
|
71
70
|
:disabled => :disabled,
|
71
|
+
:scope => :scope,
|
72
72
|
:active_from => :activeFrom,
|
73
73
|
:active_to => :activeTo
|
74
74
|
|
@@ -3,37 +3,37 @@ module Attune
|
|
3
3
|
# Inputs for ranking a set of ids for a particular user.
|
4
4
|
#
|
5
5
|
# @attr [String] anonymous
|
6
|
+
# @attr [String] entity_type
|
7
|
+
# @attr [Array<String>] ids
|
6
8
|
# @attr [String] view
|
7
9
|
# @attr [String] user_agent
|
8
|
-
# @attr [String] ip
|
9
|
-
# @attr [Array<String>] quantities
|
10
10
|
# @attr [Array<Attune::Model::ScopeEntry>] scope
|
11
|
-
# @attr [String]
|
12
|
-
# @attr [Array<
|
11
|
+
# @attr [String] ip
|
12
|
+
# @attr [Array<Attune::Model::int>] quantities
|
13
13
|
# @attr [String] customer
|
14
14
|
class RankingParams
|
15
15
|
attr_accessor :anonymous
|
16
16
|
|
17
17
|
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :entity_type
|
19
19
|
|
20
20
|
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :ids
|
22
22
|
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :view
|
25
25
|
|
26
26
|
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :user_agent
|
28
28
|
|
29
29
|
|
30
30
|
attr_accessor :scope
|
31
31
|
|
32
32
|
|
33
|
-
attr_accessor :
|
33
|
+
attr_accessor :ip
|
34
34
|
|
35
35
|
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :quantities
|
37
37
|
|
38
38
|
|
39
39
|
attr_accessor :customer
|
@@ -44,26 +44,26 @@ module Attune
|
|
44
44
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
45
45
|
@anonymous = attributes["anonymous"] || attributes[:"anonymous"]
|
46
46
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
47
|
-
@
|
48
|
-
|
49
|
-
@user_agent = attributes["userAgent"] || attributes[:"user_agent"]
|
50
|
-
# Workaround since JSON.parse has accessors as strings rather than symbols
|
51
|
-
@ip = attributes["ip"] || attributes[:"ip"]
|
52
|
-
value = attributes["quantities"] || attributes[:"quantities"]
|
47
|
+
@entity_type = attributes["entityType"] || attributes[:"entity_type"]
|
48
|
+
value = attributes["ids"] || attributes[:"ids"]
|
53
49
|
if value.is_a?(Array)
|
54
|
-
@
|
50
|
+
@ids = value
|
55
51
|
|
56
52
|
end
|
53
|
+
# Workaround since JSON.parse has accessors as strings rather than symbols
|
54
|
+
@view = attributes["view"] || attributes[:"view"]
|
55
|
+
# Workaround since JSON.parse has accessors as strings rather than symbols
|
56
|
+
@user_agent = attributes["userAgent"] || attributes[:"user_agent"]
|
57
57
|
value = attributes["scope"] || attributes[:"scope"]
|
58
58
|
if value.is_a?(Array)
|
59
59
|
@scope = value.map{ |v| ScopeEntry.new(v) }
|
60
60
|
|
61
61
|
end
|
62
62
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
63
|
-
@
|
64
|
-
value = attributes["
|
63
|
+
@ip = attributes["ip"] || attributes[:"ip"]
|
64
|
+
value = attributes["quantities"] || attributes[:"quantities"]
|
65
65
|
if value.is_a?(Array)
|
66
|
-
@
|
66
|
+
@quantities = value
|
67
67
|
|
68
68
|
end
|
69
69
|
# Workaround since JSON.parse has accessors as strings rather than symbols
|
@@ -87,13 +87,13 @@ module Attune
|
|
87
87
|
# :internal => :external
|
88
88
|
ATTRIBUTE_MAP = {
|
89
89
|
:anonymous => :anonymous,
|
90
|
+
:entity_type => :entityType,
|
91
|
+
:ids => :ids,
|
90
92
|
:view => :view,
|
91
93
|
:user_agent => :userAgent,
|
94
|
+
:scope => :scope,
|
92
95
|
:ip => :ip,
|
93
96
|
:quantities => :quantities,
|
94
|
-
:scope => :scope,
|
95
|
-
:entity_type => :entityType,
|
96
|
-
:ids => :ids,
|
97
97
|
:customer => :customer
|
98
98
|
|
99
99
|
}
|
data/lib/attune/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attune
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Hawthorn
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-09-
|
12
|
+
date: 2014-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|