Class: Fotolia::Tags
- Inherits:
-
Object
- Object
- Fotolia::Tags
- 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
-
#initialize(fotolia_client) ⇒ Tags
constructor
A new instance of Tags.
-
#most_searched ⇒ Object
Returns an array of the most searched tags at Fotolia.
-
#most_used ⇒ Object
Returns an array of the most used tags in media at Fotolia.
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_searched ⇒ Object
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_used ⇒ Object
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 |