Class: Flicket::SearchCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Flicket::SearchCommand
- Defined in:
- lib/flicket/flicker_query.rb
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
Constructor Details
This class inherits a constructor from Flicket::BaseCommand
Instance Method Details
#call(text) ⇒ Object
14 15 16 |
# File 'lib/flicket/flicker_query.rb', line 14 def call(text) api.photos.search({text: text, sort: 'interestingness-desc', per_page: 10}) end |