Class: Fotolia::Tags

Inherits:
Object
  • Object
show all
Defined in:
lib/fotolia/tags.rb

Overview

Interface to tags at Fotolia.

Use Fotolia::Base#tags as shortcut to an instance of this class.

Instance Method Summary collapse

Constructor Details

#initialize(fotolia_client) ⇒ Tags

Returns a new instance of Tags.



8
9
10
# File 'lib/fotolia/tags.rb', line 8

def initialize(fotolia_client)
  @fotolia = fotolia_client
end

Instance Method Details

#most_searchedObject

Returns an array of the most searched tags at Fotolia.

The tags should be in the language the used Fotolia::Base object is set to.



17
18
19
# File 'lib/fotolia/tags.rb', line 17

def most_searched
  self.find('Searched')
end

#most_usedObject

Returns an array of the most used tags in media at Fotolia.

The tags should be in the language the used Fotolia::Base object is set to.



26
27
28
# File 'lib/fotolia/tags.rb', line 26

def most_used
  self.find('Used')
end