We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0afec62 + b4c2ccd commit 091a650Copy full SHA for 091a650
1 file changed
lib/ticketmaster/results/search.rb
@@ -3,6 +3,8 @@ class Search < Result
3
attr_accessor :type
4
5
def results
6
+ return [] if data['_embedded'].nil?
7
+
8
data['_embedded'][type].map do |event|
9
Result.create(event, request, "Ticketmaster::#{type.capitalize.chop}")
10
end
0 commit comments