lib/unsplash/user.rb in unsplash-1.2.1 vs lib/unsplash/user.rb in unsplash-1.3.0

- old
+ new

@@ -42,8 +42,18 @@ list = JSON.parse(connection.get("/users/#{username}/likes").body) list.map do |photo| Unsplash::Photo.new photo.to_hash end end + + # Get a list of photos liked by the user. + # @return [Array] a list of +Unsplash::Collection+ objects. + def collections + list = JSON.parse(connection.get("/users/#{username}/collections").body) + list.map do |collection| + Unsplash::Collection.new collection.to_hash + end + end + end end \ No newline at end of file