Sha256: ae2b20b52f4a1690acb60000aca977bbcc8f0b960d49895cb9949387fe99ff58

Contents?: true

Size: 453 Bytes

Versions: 47

Compression:

Stored size: 453 Bytes

Contents

module Rgviz
  module Tqx
    def self.parse(tqx)
      tqx ||= ''
      pieces = tqx.split ';'
      
      map = {
        'reqId' => '0', 
        'version' => '0.6', 
        'responseHandler' => 'google.visualization.Query.setResponse',
        'out' => 'json'
        }
        
      pieces.each do |p|
        key_value = p.split ':'
        map[key_value[0]] = key_value[1] if key_value.length == 2
      end
      
      map
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
rgviz-rails-1.0.0 lib/rgviz_rails/tqx.rb
rgviz-rails-0.76 lib/rgviz_rails/tqx.rb
rgviz-rails-0.75 lib/rgviz_rails/tqx.rb
rgviz-rails-0.74 lib/rgviz_rails/tqx.rb
rgviz-rails-0.73 lib/rgviz_rails/tqx.rb
rgviz-rails-0.72 lib/rgviz_rails/tqx.rb
rgviz-rails-0.71 lib/rgviz_rails/tqx.rb
rgviz-rails-0.69 lib/rgviz_rails/tqx.rb
rgviz-rails-0.68 lib/rgviz_rails/tqx.rb
rgviz-rails-0.67 lib/rgviz_rails/tqx.rb
rgviz-rails-0.66 lib/rgviz_rails/tqx.rb
rgviz-rails-0.65 lib/rgviz_rails/tqx.rb
rgviz-rails-0.64 lib/rgviz_rails/tqx.rb
rgviz-rails-0.63 lib/rgviz_rails/tqx.rb
rgviz-rails-0.62 lib/rgviz_rails/tqx.rb
rgviz-rails-0.61 lib/rgviz_rails/tqx.rb
rgviz-rails-0.60 lib/rgviz_rails/tqx.rb
rgviz-rails-0.59 lib/rgviz_rails/tqx.rb
rgviz-rails-0.58 lib/rgviz_rails/tqx.rb
rgviz-rails-0.57 lib/rgviz_rails/tqx.rb