attune 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,44 +0,0 @@
1
- module Attune
2
- module Model
3
- #
4
- class BatchRankingRequest
5
- attr_accessor :requests
6
-
7
-
8
- # :internal => :external
9
- def self.attribute_map
10
- {
11
- :requests => :requests
12
-
13
- }
14
- end
15
-
16
- def initialize(attributes = {})
17
- return if attributes.empty?
18
- # Morph attribute keys into undescored rubyish style
19
- if self.class.attribute_map[:"requests"]
20
- value = attributes["requests"] || attributes[:"requests"]
21
- if value.is_a?(Array)
22
- @requests = value.map{ |v| RankingParams.new(v) }
23
-
24
- end
25
- end
26
-
27
-
28
- end
29
-
30
- def to_body
31
- body = {}
32
- self.class.attribute_map.each_pair do |key, value|
33
- body[value] = self.send(key) unless self.send(key).nil?
34
- end
35
- body
36
- end
37
-
38
- def to_json(options = {})
39
- to_body.to_json
40
- end
41
- end
42
- end
43
- end
44
-
@@ -1,44 +0,0 @@
1
- module Attune
2
- module Model
3
- #
4
- class BatchRankingResult
5
- attr_accessor :results
6
-
7
-
8
- # :internal => :external
9
- def self.attribute_map
10
- {
11
- :results => :results
12
-
13
- }
14
- end
15
-
16
- def initialize(attributes = {})
17
- return if attributes.empty?
18
- # Morph attribute keys into undescored rubyish style
19
- if self.class.attribute_map[:"results"]
20
- value = attributes["results"] || attributes[:"results"]
21
- if value.is_a?(Array)
22
- @results = value.map{ |v| RankedEntities.new(v) }
23
-
24
- end
25
- end
26
-
27
-
28
- end
29
-
30
- def to_body
31
- body = {}
32
- self.class.attribute_map.each_pair do |key, value|
33
- body[value] = self.send(key) unless self.send(key).nil?
34
- end
35
- body
36
- end
37
-
38
- def to_json(options = {})
39
- to_body.to_json
40
- end
41
- end
42
- end
43
- end
44
-
@@ -1,44 +0,0 @@
1
- module Attune
2
- module Model
3
- #
4
- class BlacklistGetResponse
5
- attr_accessor :blacklists
6
-
7
-
8
- # :internal => :external
9
- def self.attribute_map
10
- {
11
- :blacklists => :blacklists
12
-
13
- }
14
- end
15
-
16
- def initialize(attributes = {})
17
- return if attributes.empty?
18
- # Morph attribute keys into undescored rubyish style
19
- if self.class.attribute_map[:"blacklists"]
20
- value = attributes["blacklists"] || attributes[:"blacklists"]
21
- if value.is_a?(Array)
22
- @blacklists = value.map{ |v| Blacklist.new(v) }
23
-
24
- end
25
- end
26
-
27
-
28
- end
29
-
30
- def to_body
31
- body = {}
32
- self.class.attribute_map.each_pair do |key, value|
33
- body[value] = self.send(key) unless self.send(key).nil?
34
- end
35
- body
36
- end
37
-
38
- def to_json(options = {})
39
- to_body.to_json
40
- end
41
- end
42
- end
43
- end
44
-
@@ -1,87 +0,0 @@
1
- module Attune
2
- module Model
3
- #
4
- class BlacklistParams
5
- attr_accessor :entity_type
6
-
7
-
8
- attr_accessor :disabled
9
-
10
-
11
- attr_accessor :ids
12
-
13
-
14
- attr_accessor :scope
15
-
16
-
17
- attr_accessor :active_from
18
-
19
-
20
- attr_accessor :active_to
21
-
22
-
23
- # :internal => :external
24
- def self.attribute_map
25
- {
26
- :entity_type => :entityType,
27
- :disabled => :disabled,
28
- :ids => :ids,
29
- :scope => :scope,
30
- :active_from => :activeFrom,
31
- :active_to => :activeTo
32
-
33
- }
34
- end
35
-
36
- def initialize(attributes = {})
37
- return if attributes.empty?
38
- # Morph attribute keys into undescored rubyish style
39
- if self.class.attribute_map[:"entity_type"]
40
- # Workaround since JSON.parse has accessors as strings rather than symbols
41
- @entity_type = attributes["entityType"] || attributes[:"entity_type"]
42
- end
43
- if self.class.attribute_map[:"disabled"]
44
- # Workaround since JSON.parse has accessors as strings rather than symbols
45
- @disabled = attributes["disabled"] || attributes[:"disabled"]
46
- end
47
- if self.class.attribute_map[:"ids"]
48
- value = attributes["ids"] || attributes[:"ids"]
49
- if value.is_a?(Array)
50
- @ids = value
51
-
52
- end
53
- end
54
- if self.class.attribute_map[:"scope"]
55
- value = attributes["scope"] || attributes[:"scope"]
56
- if value.is_a?(Array)
57
- @scope = value
58
-
59
- end
60
- end
61
- if self.class.attribute_map[:"active_from"]
62
- # Workaround since JSON.parse has accessors as strings rather than symbols
63
- @active_from = attributes["activeFrom"] || attributes[:"active_from"]
64
- end
65
- if self.class.attribute_map[:"active_to"]
66
- # Workaround since JSON.parse has accessors as strings rather than symbols
67
- @active_to = attributes["activeTo"] || attributes[:"active_to"]
68
- end
69
-
70
-
71
- end
72
-
73
- def to_body
74
- body = {}
75
- self.class.attribute_map.each_pair do |key, value|
76
- body[value] = self.send(key) unless self.send(key).nil?
77
- end
78
- body
79
- end
80
-
81
- def to_json(options = {})
82
- to_body.to_json
83
- end
84
- end
85
- end
86
- end
87
-
@@ -1,41 +0,0 @@
1
- module Attune
2
- module Model
3
- #
4
- class BlacklistSaveResponse
5
- attr_accessor :result
6
-
7
-
8
- # :internal => :external
9
- def self.attribute_map
10
- {
11
- :result => :result
12
-
13
- }
14
- end
15
-
16
- def initialize(attributes = {})
17
- return if attributes.empty?
18
- # Morph attribute keys into undescored rubyish style
19
- if self.class.attribute_map[:"result"]
20
- # Workaround since JSON.parse has accessors as strings rather than symbols
21
- @result = attributes["result"] || attributes[:"result"]
22
- end
23
-
24
-
25
- end
26
-
27
- def to_body
28
- body = {}
29
- self.class.attribute_map.each_pair do |key, value|
30
- body[value] = self.send(key) unless self.send(key).nil?
31
- end
32
- body
33
- end
34
-
35
- def to_json(options = {})
36
- to_body.to_json
37
- end
38
- end
39
- end
40
- end
41
-
@@ -1,60 +0,0 @@
1
- module Attune
2
- module Model
3
- #
4
- class RankedEntities
5
- attr_accessor :message
6
-
7
-
8
- attr_accessor :status
9
-
10
-
11
- attr_accessor :ranking
12
-
13
-
14
- # :internal => :external
15
- def self.attribute_map
16
- {
17
- :message => :message,
18
- :status => :status,
19
- :ranking => :ranking
20
-
21
- }
22
- end
23
-
24
- def initialize(attributes = {})
25
- return if attributes.empty?
26
- # Morph attribute keys into undescored rubyish style
27
- if self.class.attribute_map[:"message"]
28
- # Workaround since JSON.parse has accessors as strings rather than symbols
29
- @message = attributes["message"] || attributes[:"message"]
30
- end
31
- if self.class.attribute_map[:"status"]
32
- # Workaround since JSON.parse has accessors as strings rather than symbols
33
- @status = attributes["status"] || attributes[:"status"]
34
- end
35
- if self.class.attribute_map[:"ranking"]
36
- value = attributes["ranking"] || attributes[:"ranking"]
37
- if value.is_a?(Array)
38
- @ranking = value
39
-
40
- end
41
- end
42
-
43
-
44
- end
45
-
46
- def to_body
47
- body = {}
48
- self.class.attribute_map.each_pair do |key, value|
49
- body[value] = self.send(key) unless self.send(key).nil?
50
- end
51
- body
52
- end
53
-
54
- def to_json(options = {})
55
- to_body.to_json
56
- end
57
- end
58
- end
59
- end
60
-
@@ -1,103 +0,0 @@
1
- module Attune
2
- module Model
3
- #
4
- class RankingParams
5
- attr_accessor :view
6
-
7
-
8
- attr_accessor :entity_type
9
-
10
-
11
- attr_accessor :ids
12
-
13
-
14
- attr_accessor :scope
15
-
16
-
17
- attr_accessor :ip
18
-
19
-
20
- attr_accessor :user_agent
21
-
22
-
23
- attr_accessor :customer
24
-
25
-
26
- attr_accessor :anonymous
27
-
28
-
29
- # :internal => :external
30
- def self.attribute_map
31
- {
32
- :view => :view,
33
- :entity_type => :entityType,
34
- :ids => :ids,
35
- :scope => :scope,
36
- :ip => :ip,
37
- :user_agent => :userAgent,
38
- :customer => :customer,
39
- :anonymous => :anonymous
40
-
41
- }
42
- end
43
-
44
- def initialize(attributes = {})
45
- return if attributes.empty?
46
- # Morph attribute keys into undescored rubyish style
47
- if self.class.attribute_map[:"view"]
48
- # Workaround since JSON.parse has accessors as strings rather than symbols
49
- @view = attributes["view"] || attributes[:"view"]
50
- end
51
- if self.class.attribute_map[:"entity_type"]
52
- # Workaround since JSON.parse has accessors as strings rather than symbols
53
- @entity_type = attributes["entityType"] || attributes[:"entity_type"]
54
- end
55
- if self.class.attribute_map[:"ids"]
56
- value = attributes["ids"] || attributes[:"ids"]
57
- if value.is_a?(Array)
58
- @ids = value
59
-
60
- end
61
- end
62
- if self.class.attribute_map[:"scope"]
63
- value = attributes["scope"] || attributes[:"scope"]
64
- if value.is_a?(Array)
65
- @scope = value.map{ |v| ScopeEntry.new(v) }
66
-
67
- end
68
- end
69
- if self.class.attribute_map[:"ip"]
70
- # Workaround since JSON.parse has accessors as strings rather than symbols
71
- @ip = attributes["ip"] || attributes[:"ip"]
72
- end
73
- if self.class.attribute_map[:"user_agent"]
74
- # Workaround since JSON.parse has accessors as strings rather than symbols
75
- @user_agent = attributes["userAgent"] || attributes[:"user_agent"]
76
- end
77
- if self.class.attribute_map[:"customer"]
78
- # Workaround since JSON.parse has accessors as strings rather than symbols
79
- @customer = attributes["customer"] || attributes[:"customer"]
80
- end
81
- if self.class.attribute_map[:"anonymous"]
82
- # Workaround since JSON.parse has accessors as strings rather than symbols
83
- @anonymous = attributes["anonymous"] || attributes[:"anonymous"]
84
- end
85
-
86
-
87
- end
88
-
89
- def to_body
90
- body = {}
91
- self.class.attribute_map.each_pair do |key, value|
92
- body[value] = self.send(key) unless self.send(key).nil?
93
- end
94
- body
95
- end
96
-
97
- def to_json(options = {})
98
- to_body.to_json
99
- end
100
- end
101
- end
102
- end
103
-
@@ -1,49 +0,0 @@
1
- module Attune
2
- module Model
3
- #
4
- class ScopeEntry
5
- attr_accessor :name
6
-
7
-
8
- attr_accessor :value
9
-
10
-
11
- # :internal => :external
12
- def self.attribute_map
13
- {
14
- :name => :name,
15
- :value => :value
16
-
17
- }
18
- end
19
-
20
- def initialize(attributes = {})
21
- return if attributes.empty?
22
- # Morph attribute keys into undescored rubyish style
23
- if self.class.attribute_map[:"name"]
24
- # Workaround since JSON.parse has accessors as strings rather than symbols
25
- @name = attributes["name"] || attributes[:"name"]
26
- end
27
- if self.class.attribute_map[:"value"]
28
- # Workaround since JSON.parse has accessors as strings rather than symbols
29
- @value = attributes["value"] || attributes[:"value"]
30
- end
31
-
32
-
33
- end
34
-
35
- def to_body
36
- body = {}
37
- self.class.attribute_map.each_pair do |key, value|
38
- body[value] = self.send(key) unless self.send(key).nil?
39
- end
40
- body
41
- end
42
-
43
- def to_json(options = {})
44
- to_body.to_json
45
- end
46
- end
47
- end
48
- end
49
-