Class: Flicket::SearchCommand

Inherits:
BaseCommand show all
Defined in:
lib/flicket/flicker_query.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#api

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

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