mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 01:44:02 +08:00
14 lines
206 B
Ruby
14 lines
206 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Onebox
|
||
|
module Engine
|
||
|
module JSON
|
||
|
private
|
||
|
|
||
|
def raw
|
||
|
@raw ||= ::MultiJson.load(URI.open(url, read_timeout: timeout))
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|