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
2727 # Attribute type mapping.
2828 def self . types_mapping
2929 {
30- :urls => :"BannerImageUrl" ,
30+ :urls => :"Array< BannerImageUrl> " ,
3131 :title => :"String"
3232 }
3333 end
@@ -63,7 +63,9 @@ def initialize(attributes = {})
6363 }
6464
6565 if attributes . key? ( :urls )
66- self . urls = attributes [ :urls ]
66+ if ( value = attributes [ :urls ] ) . is_a? ( Array )
67+ self . urls = value
68+ end
6769 end
6870
6971 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
77 module Recommend
88 # widgets returned from any rules that are applied to the current search.
99 class Widgets
10+ # banners defined in the merchandising studio for the given search.
1011 attr_accessor :banners
1112
1213 # Attribute mapping from ruby-style variable name to JSON key.
@@ -24,7 +25,7 @@ def self.acceptable_attributes
2425 # Attribute type mapping.
2526 def self . types_mapping
2627 {
27- :banners => :"Banners "
28+ :banners => :"Array<Banner> "
2829 }
2930 end
3031
@@ -56,7 +57,9 @@ def initialize(attributes = {})
5657 }
5758
5859 if attributes . key? ( :banners )
59- self . banners = attributes [ :banners ]
60+ if ( value = attributes [ :banners ] ) . is_a? ( Array )
61+ self . banners = value
62+ end
6063 end
6164 end
6265
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def self.acceptable_attributes
2727 # Attribute type mapping.
2828 def self . types_mapping
2929 {
30- :urls => :"BannerImageUrl" ,
30+ :urls => :"Array< BannerImageUrl> " ,
3131 :title => :"String"
3232 }
3333 end
@@ -63,7 +63,9 @@ def initialize(attributes = {})
6363 }
6464
6565 if attributes . key? ( :urls )
66- self . urls = attributes [ :urls ]
66+ if ( value = attributes [ :urls ] ) . is_a? ( Array )
67+ self . urls = value
68+ end
6769 end
6870
6971 if attributes . key? ( :title )
You can’t perform that action at this time.
0 commit comments