Method: TopMoviesOf::Scraper#add_attributes
- Defined in:
- lib/Top_Movies_Of/scraper.rb
#add_attributes(input) ⇒ Object
adds score and summary for a single movie that is chosen
64 65 66 67 68 69 70 71 |
# File 'lib/Top_Movies_Of/scraper.rb', line 64 def add_attributes(input) #adds score and summary for a single movie that is chosen movie = TopMoviesOf::Movie.find_movie(input) summary = get_movie_summary(movie.name) score = get_movie_score(movie.name) movie.summary = summary movie.score = score return movie end |