Class: ImdbSearch
- Inherits:
-
Object
- Object
- ImdbSearch
- Defined in:
- lib/imdb/imdb_search.rb
Instance Method Summary collapse
-
#initialize(query) ⇒ ImdbSearch
constructor
A new instance of ImdbSearch.
- #movies ⇒ Object
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
#movies ⇒ Object
7 8 9 |
# File 'lib/imdb/imdb_search.rb', line 7 def movies @movies ||= (exact_match? ? parse_movie : parse_movies) end |