Method: GChart::Base#to_url

Defined in:
lib/gchart/base.rb

#to_urlObject

Returns the chart’s URL.



76
77
78
79
# File 'lib/gchart/base.rb', line 76

def to_url
  query = query_params.collect { |k, v| "#{k}=#{URI.escape(v)}" }.join("&")
  "#{GChart::URL}?#{query}"
end