lib/movie_quotes.rb in movie_quotes-0.1.0 vs lib/movie_quotes.rb in movie_quotes-0.1.1
- old
+ new
@@ -1,8 +1,7 @@
require "configuration"
require "httparty"
-require "version"
class MovieQuotes
include HTTParty
# testing purposes
@@ -58,9 +57,15 @@
self
end
def by_page(page)
apply_filter "page", page
+
+ self
+ end
+
+ def by_random(count)
+ apply_filter "random", count
self
end
def by_rating(rating)