lib/movie_quotes.rb in movie_quotes-0.1.1 vs lib/movie_quotes.rb in movie_quotes-0.1.2

- old
+ new

@@ -3,11 +3,11 @@ class MovieQuotes include HTTParty # testing purposes - # BASE_URL = "http://dev.movie-quotes.com:3000/v1/quotes".freeze + # BASE_URL = "http://dev.movie-quotes.com:3000/api/v1/quotes".freeze BASE_URL = "https://movie-quotes-app.herokuapp.com/api/v1/quotes".freeze attr_reader :filters @@ -61,10 +61,10 @@ apply_filter "page", page self end - def by_random(count) + def by_random(count=1) apply_filter "random", count self end