Class: Unsplash::Category
Overview
Unsplash Category operations.
Class Method Summary collapse
-
.all ⇒ Array
Get a list of all of the Unsplash photo categories.
-
.find(id) ⇒ Unsplash::Category
Get an Unsplash Category.
Instance Method Summary collapse
-
#photos(page = 1, per_page = 10) ⇒ Array
Get a list of all photos in this category.
Methods inherited from Client
#connection, connection, connection=, #initialize, #reload!, #to_h
Constructor Details
This class inherits a constructor from Unsplash::Client
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Unsplash::Client
Class Method Details
.all ⇒ Array
Get a list of all of the Unsplash photo categories. DEPRECATED
11 12 13 |
# File 'lib/unsplash/category.rb', line 11 def all raise Unsplash::DeprecationError.new "Category has been deprecated and removed." end |
.find(id) ⇒ Unsplash::Category
Get an Unsplash Category. DEPRECATED
19 20 21 |
# File 'lib/unsplash/category.rb', line 19 def find(id) raise Unsplash::DeprecationError.new "Category has been deprecated and removed." end |
Instance Method Details
#photos(page = 1, per_page = 10) ⇒ Array
Get a list of all photos in this category. DEPRECATED
29 30 31 |
# File 'lib/unsplash/category.rb', line 29 def photos(page = 1, per_page = 10) raise Unsplash::DeprecationError.new "Category has been deprecated and removed." end |