lib/rottentom/dvd.rb in rottentom-0.3.0 vs lib/rottentom/dvd.rb in rottentom-0.3.1

- old
+ new

@@ -7,10 +7,10 @@ results = RT::API.get("/v1.0/lists/dvds/current_releases.json", query: options) results = JSON.parse(results)['movies'] results.collect! { |movie| Hashie::Mash.new(movie) } end - def self.current(options = {}) + def self.new_releases(options = {}) options.merge!(apikey: RT::API.api_key) results = RT::API.get("/v1.0/lists/dvds/new_releases.json", query: options) results = JSON.parse(results)['movies'] results.collect! { |movie| Hashie::Mash.new(movie) } \ No newline at end of file