rottentomatoes 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc
CHANGED
@@ -53,7 +53,7 @@ Each object provides a find() method which accepts a number of options:
|
|
53
53
|
|
54
54
|
RottenList.find(:type => "upcoming", :limit => 10, :expand_results => true)
|
55
55
|
|
56
|
-
[:type] specifies a list type to retrieve. Valid options are 'box_office', 'in_theaters', 'opening', 'upcoming', 'new_releases'.
|
56
|
+
[:type] specifies a list type to retrieve. Valid options are 'box_office', 'in_theaters', 'opening', 'upcoming', 'new_releases', 'top_rentals'.
|
57
57
|
[:limit] see RottenMovie
|
58
58
|
[:expand_results] see RottenMovie
|
59
59
|
|
@@ -4,7 +4,7 @@ module RottenTomatoes
|
|
4
4
|
|
5
5
|
def self.find(options)
|
6
6
|
raise ArgumentError, ":type must be set" if (options[:type].nil?)
|
7
|
-
if !["box_office", "in_theaters", "opening", "upcoming", "new_releases"].include?(options[:type])
|
7
|
+
if !["box_office", "in_theaters", "opening", "upcoming", "new_releases", "top_rentals"].include?(options[:type])
|
8
8
|
raise ArgumentError, ":type must be a recognized format"
|
9
9
|
end
|
10
10
|
|
@@ -34,7 +34,7 @@ module RottenTomatoes
|
|
34
34
|
end
|
35
35
|
|
36
36
|
if (method == "lists")
|
37
|
-
url += (options[:type] == "new_releases") ? "/dvds/" : "/movies/"
|
37
|
+
url += (options[:type] == "new_releases" || options[:type] == "top_rentals") ? "/dvds/" : "/movies/"
|
38
38
|
url += options[:type]
|
39
39
|
end
|
40
40
|
|