Class: RottenTomatoes::RottenList
- Inherits:
-
Object
- Object
- RottenTomatoes::RottenList
- Defined in:
- lib/rottentomatoes/rotten_list.rb
Class Method Summary collapse
Class Method Details
.find(options) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/rottentomatoes/rotten_list.rb', line 5 def self.find() raise ArgumentError, ":type must be set" if ([:type].nil?) if !["box_office", "in_theaters", "opening", "upcoming", "new_releases"].include?([:type]) raise ArgumentError, ":type must be a recognized format" end results = [] results << Rotten.api_call("lists", ) return Rotten.process_results(results, ) end |