Sha256: 889bd7587c4127625bc5b2df15d3c076e0faf6aa027475790d37d213da60355f

Contents?: true

Size: 234 Bytes

Versions: 3

Compression:

Stored size: 234 Bytes

Contents

module Meme

  class Request #:nodoc:

    def self.parse(query)
      url    = URI.escape("https://query.yahooapis.com/v1/public/yql?q=#{query}&format=json")
      buffer = open(url).read
      JSON.parse(buffer)
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
meme-0.3.0 lib/meme/request.rb
meme-0.2.1 lib/meme/request.rb
meme-0.2.0 lib/meme/request.rb