Sha256: 1cfa049bf6dd80d2f7c4cf8275c8c2fc8f6208699d7d5ca63c96a4389a835cea
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 Bytes
Contents
module MovieStone module Providers class Imdb def self.fetch(options) if options[:id] params = "i=#{options[:id]}" else params = "i=&t=#{URI.encode(options[:title])}" end JSON.parse(Faraday.get("http://www.omdbapi.com?#{params}").body) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
movie_stone-0.1.0 | lib/movie_stone/providers/imdb.rb |