lib/onebox/engine/xkcd_onebox.rb in onebox-1.8.68 vs lib/onebox/engine/xkcd_onebox.rb in onebox-1.8.69
- 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
- {
- link: @url,
- title: 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