Class: Flickrage::Service::Search
- Inherits:
-
Object
- Object
- Flickrage::Service::Search
- Includes:
- Helpers::Log
- Defined in:
- lib/flickrage/service/search.rb
Instance Method Summary collapse
Methods included from Helpers::Log
Instance Method Details
#run(keyword) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/flickrage/service/search.rb', line 7 def run(keyword) result = search(keyword) return if result.size < 1 image(result.first, keyword) rescue StandardError => e logger.debug(e) nil end |