10 11 12 13
# File 'lib/myimdb.rb', line 10 def self.search(movie_name) search_result = Myimdb::Search::Base.search(movie_name, :restrict_to=> "imdb.com")[0] Myimdb::Scraper::Imdb.new(search_result[:url]) if search_result end