File tree Expand file tree Collapse file tree 6 files changed +18
-426
lines changed Expand file tree Collapse file tree 6 files changed +18
-426
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def self.acceptable_attributes
27
27
# Attribute type mapping.
28
28
def self . types_mapping
29
29
{
30
- :urls => :"BannerImageUrl" ,
30
+ :urls => :"Array< BannerImageUrl> " ,
31
31
:title => :"String"
32
32
}
33
33
end
@@ -63,7 +63,9 @@ def initialize(attributes = {})
63
63
}
64
64
65
65
if attributes . key? ( :urls )
66
- self . urls = attributes [ :urls ]
66
+ if ( value = attributes [ :urls ] ) . is_a? ( Array )
67
+ self . urls = value
68
+ end
67
69
end
68
70
69
71
if attributes . key? ( :title )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ module Algolia
7
7
module Recommend
8
8
# widgets returned from any rules that are applied to the current search.
9
9
class Widgets
10
+ # banners defined in the merchandising studio for the given search.
10
11
attr_accessor :banners
11
12
12
13
# Attribute mapping from ruby-style variable name to JSON key.
@@ -24,7 +25,7 @@ def self.acceptable_attributes
24
25
# Attribute type mapping.
25
26
def self . types_mapping
26
27
{
27
- :banners => :"Banners "
28
+ :banners => :"Array<Banner> "
28
29
}
29
30
end
30
31
@@ -56,7 +57,9 @@ def initialize(attributes = {})
56
57
}
57
58
58
59
if attributes . key? ( :banners )
59
- self . banners = attributes [ :banners ]
60
+ if ( value = attributes [ :banners ] ) . is_a? ( Array )
61
+ self . banners = value
62
+ end
60
63
end
61
64
end
62
65
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def self.acceptable_attributes
27
27
# Attribute type mapping.
28
28
def self . types_mapping
29
29
{
30
- :urls => :"BannerImageUrl" ,
30
+ :urls => :"Array< BannerImageUrl> " ,
31
31
:title => :"String"
32
32
}
33
33
end
@@ -63,7 +63,9 @@ def initialize(attributes = {})
63
63
}
64
64
65
65
if attributes . key? ( :urls )
66
- self . urls = attributes [ :urls ]
66
+ if ( value = attributes [ :urls ] ) . is_a? ( Array )
67
+ self . urls = value
68
+ end
67
69
end
68
70
69
71
if attributes . key? ( :title )
You can’t perform that action at this time.
0 commit comments