Module: WebFont::HTTP

Defined in:
lib/web_font/http.rb

Class Method Summary collapse

Class Method Details

.get(uri, output_path) ⇒ Object



3
4
5
6
# File 'lib/web_font/http.rb', line 3

def self.get(uri, output_path)
  json_str = Net::HTTP.get(URI(uri))
  File.open(output_path, 'w') { |fp| fp.puts(json_str) }
end