Method: Formatter::Png#google_url

Defined in:
app/formatters/png_formatter.rb

#google_urlObject



42
43
44
45
46
47
48
# File 'app/formatters/png_formatter.rb', line 42

def google_url
  url = Gchart.send(google_type, google_hash)
  unwise = %w({ } | \ ^ [ ] `)
  unwise.each { |c| url.gsub!(c, "%#{c[0].to_s(16).upcase}") }
  url.gsub!(/\s/, "%20")
  url
end