Class: ImdbSearch

Inherits:
Object
  • Object
show all
Defined in:
lib/imdb/imdb_search.rb

Instance Method Summary collapse

Constructor Details

#initialize(query) ⇒ ImdbSearch

Returns a new instance of ImdbSearch.



3
4
5
# File 'lib/imdb/imdb_search.rb', line 3

def initialize(query)
  @query = query
end

Instance Method Details

#moviesObject



7
8
9
# File 'lib/imdb/imdb_search.rb', line 7

def movies
  @movies ||= (exact_match? ? parse_movie : parse_movies)
end