Class: Fotolia::ConceptualCategory
- Defined in:
- lib/fotolia/conceptual_category.rb
Overview
Represents a conceptual 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/conceptual_category.rb', line 10 def child_categories @fotolia.conceptual_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/conceptual_category.rb', line 20 def media( = {}) @fotolia.search(.merge({:conceptual_category => self})) end |