Skip to content

Commit

Permalink
Merge 832e1ad into d09f115
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavosobral committed Jun 18, 2018
2 parents d09f115 + 832e1ad commit 471d426
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/unsplash/photo.rb
Expand Up @@ -98,7 +98,7 @@ def search(query, page = 1, per_page = 10, orientation = nil)
# Get a list of all photos.
# @param page [Integer] Which page of search results to return.
# @param per_page [Integer] The number of search results per page. (default: 10, maximum: 30)
# @param order_by [String] How to sort the photos.
# @param order_by [String] How to sort the photos. (Valid values: latest, oldest, popular; default: latest)
# @return [Array] A single page of +Unsplash::Photo+ search results.
def all(page = 1, per_page = 10, order_by = "latest")
params = {
Expand All @@ -112,9 +112,9 @@ def all(page = 1, per_page = 10, order_by = "latest")
# Get a single page from the list of the curated photos (front-page’s photos).
# @param page [Integer] Which page of search results to return.
# @param per_page [Integer] The number of search results per page. (default: 10, maximum: 30)
# @param order_by [String] How to sort the photos.
# @param order_by [String] How to sort the photos. (Valid values: latest, oldest, popular; default: latest)
# @return [Array] A single page of +Unsplash::Photo+ search results.
def curated(page = 1, per_page = 10, order_by = "popular")
def curated(page = 1, per_page = 10, order_by = "latest")
params = {
page: page,
per_page: per_page,
Expand Down

0 comments on commit 471d426

Please sign in to comment.