Class: Fotolia::RepresentativeCategory
- Defined in:
- lib/fotolia/representative_category.rb
Overview
Represents a representative category at Fotolia.
Instance Attribute Summary
Attributes inherited from Category
#id, #key, #name, #parent_category
Instance Method Summary collapse
-
#child_categories ⇒ Object
Returns an array of ConceptualCategory objects which are children of this category.
-
#media(options = {}) ⇒ Object
Searches for media in this category.
Methods inherited from Category
Constructor Details
This class inherits a constructor from Fotolia::Category
Instance Method Details
#child_categories ⇒ Object
Returns an array of ConceptualCategory objects which are children of this category.
10 11 12 |
# File 'lib/fotolia/representative_category.rb', line 10 def child_categories @fotolia.representative_categories.find(self) end |
#media(options = {}) ⇒ Object
Searches for media in this category. For the options hash, see Fotolia::Base#search.
Returns a Fotolia::SearchResultSet.
20 21 22 |
# File 'lib/fotolia/representative_category.rb', line 20 def media( = {}) @fotolia.search(.merge({:representative_category => self})) end |