lib/unsplash/photo.rb in unsplash-1.3.0 vs lib/unsplash/photo.rb in unsplash-1.3.1
- old
+ new
@@ -43,12 +43,13 @@
# @param user [String] Limit selection to given User's ID.
# @param query [String] Limit selection to given search query.
# @param width [Integer] Width of customized version of the photo.
# @param height [Integer] Height of the customized version of the photo.
# @return [Unsplash::Photo] An Unsplash Photo.
- def random(categories: nil, featured: nil, user: nil, query: nil, width: nil, height: nil)
+ def random(categories: nil, collections: nil, featured: nil, user: nil, query: nil, width: nil, height: nil)
params = {
category: (categories && categories.join(",")),
+ collections: (collections && collections.join(",")),
featured: featured,
username: user,
query: query,
w: width,
h: height
\ No newline at end of file