MA
Size: a a a
MA
A
A
A
И
S
АЛ
A
VN
АЛ
D
АЛ
AZ
D
s
def create_csv_file(filename, items_array)
CSV.open("parsed2csv/#{filename}.csv", 'w') do |file|
file << ['Title', 'Color', 'Description', 'Brand', 'Pictures', 'Price', 'Sale Price', 'Precent Off', 'Sizes', 'WebID']
items_array.each do |item|
file << [item['title'], item['color'], item['details'], item['brand'],
item['pictures'], item['main_price'], item['sale_price'],
item['precent_off'], item['sizes'], item['webid']]
end
end
end
P
P
P
File
P
CSV.open("parsed2csv/#{filename}.csv", 'w+') do |file|
BO