class TomosiaWallhereCrawl::Cli
Public Instance Methods
crawl(keyword)
click to toggle source
# File lib/tomosia_wallhere_crawl/cli.rb, line 9 def crawl(keyword) if options[:max] == nil TomosiaWallhereCrawl::CrawlImage.new.crawldata(keyword, options[:destination], options[:max]) else TomosiaWallhereCrawl::CrawlImage.new.crawldata(keyword, options[:destination], options[:max].to_i) end end