Sha256: c605eee69d8da4058b502115500f9212188931b71864b83517fe80ddf8caffdc

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

module Unsplash # :nodoc:

  # Unsplash Category operations.
  class Category < Client

    class << self

      # Get a list of all of the Unsplash photo categories.
      # @return [Array] The list categories.
      # <b>DEPRECATED</b>
      def all
        raise Unsplash::DeprecationError.new "Category has been deprecated and removed."
      end

      # Get an Unsplash Category.
      # @param id [Integer] The ID of the category to retrieve.
      # @return [Unsplash::Category] The specified category.
      # <b>DEPRECATED</b>
      def find(id)
        raise Unsplash::DeprecationError.new "Category has been deprecated and removed."
      end
    end

    # Get a list of all photos in this category.
    # @param page  [Integer] Which page of search results to return.
    # @param per_page [Integer] The number of search results per page. 
    # @return [Array] A single page of +Unsplash::Photo+s.
    # <b>DEPRECATED</b>
    def photos(page = 1, per_page = 10)
      raise Unsplash::DeprecationError.new "Category has been deprecated and removed."
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
unsplash-1.5.6 lib/unsplash/category.rb
unsplash_mango-1.0.0 lib/unsplash/category.rb