lib/onebox/engine/xkcd_onebox.rb in onebox-1.5.65 vs lib/onebox/engine/xkcd_onebox.rb in onebox-1.6.0

- old
+ new

@@ -11,20 +11,20 @@ "https://xkcd.com/#{match[:comic_id]}/info.0.json" end private - def match - @match ||= @url.match(%{xkcd\.com/(?<comic_id>\\d+)}) - end + def match + @match ||= @url.match(%{xkcd\.com/(?<comic_id>\\d+)}) + end - def data - { - url: @url, - name: raw['safe_title'], - image: raw['img'], - description: raw['alt'] - } - end + def data + { + link: @url, + title: raw['safe_title'], + image: raw['img'], + description: raw['alt'] + } + end end end end