Class: Fotolia::ConceptualCategory

Inherits:
Category
  • Object
show all
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

Methods inherited from Category

#initialize

Constructor Details

This class inherits a constructor from Fotolia::Category

Instance Method Details

#child_categoriesObject

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(options = {})
  @fotolia.search(options.merge({:conceptual_category => self}))
end