Class: Strategy::Flickr

Inherits:
Object
  • Object
show all
Defined in:
lib/strategies/flickr.rb

Class Method Summary collapse

Class Method Details

.execObject



8
9
10
11
12
13
14
15
# File 'lib/strategies/flickr.rb', line 8

def exec
  return puts 'Missing Requirements for Flickr Download please see documentation' unless has_requirements?

  auth = ::Flickr::Authenticator.new
  downloader = ::Flickr::Downloader.new(auth.flickr)

  downloader.download
end