lib/omdb/api.rb
def find(id, tomatoes = false, plot = "short")
      res = network.call({ i: id, tomatoes: tomatoes, plot: plot })

      if res[:data]["Response"] == "False"
        { status: 404 }
      else
        { status: res[:code], movie: parse_movie(res[:data]) }
      end
    end
def find(id, tomatoes = false, plot = "short")
      res = network.call({ i: id, tomatoes: tomatoes, plot: plot })

      if res[:data]["Response"] == "False"
        { status: 404 }
      else
        { status: res[:code], movie: parse_movie(res[:data]) }
      end
    end
def find ( id , tomatoes = false , plot = "short" ) res = network . call ( { i : id , tomatoes : tomatoes , plot : plot } ) if res [ :data ] [ "Response" ] == "False" { status : 404 } else { status : res [ :code ] , movie : parse_movie ( res [ :data ] ) } end end
fetches a movie by IMDB id
 set tomatoes to true if you want to get the rotten tomatoes ranking
 set plot to full if you want to have the full, long plot
fetches a movie by IMDB id set tomatoes to true if you want to get the rotten tomatoes ranking set plot to full if you want to have the full long plot