We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0afec62 commit b4c2ccdCopy full SHA for b4c2ccd
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