mirror of
https://github.com/dkam/paapi.git
synced 2025-12-28 15:14:52 +00:00
Merge pull request #5 from ezaki3/fix-get-variations-items-empty
Fix get_variations items is empty
This commit is contained in:
@@ -10,6 +10,7 @@ module Paapi
|
||||
|
||||
@items_data = @hash.dig('ItemsResult', 'Items')
|
||||
@items_data ||= @hash.dig('SearchResult', 'Items')
|
||||
@items_data ||= @hash.dig('VariationsResult', 'Items')
|
||||
@items_data ||= []
|
||||
|
||||
@items = @items_data.map {|d| Item.new(d)}
|
||||
|
||||
Reference in New Issue
Block a user