module Onebox
module Engine
class SteamStoreOnebox
include Engine
include StandardEmbed
always_https
matches_regexp(/^https?:\/\/store\.steampowered\.com\/app\/\d+/)
def placeholder_html
og = get_opengraph
<<-HTML
#{og[:title]}
#{og[:description]}
HTML
end
def to_html
iframe_url = @url.gsub('/app/', '/widget/')
<<-HTML
HTML
end
end
end
end