Class: TomosiaWallhereCrawl::Cli
- Inherits:
-
Thor
- Object
- Thor
- TomosiaWallhereCrawl::Cli
- Defined in:
- lib/tomosia_wallhere_crawl/cli.rb
Instance Method Summary collapse
Instance Method Details
#crawl(keyword) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/tomosia_wallhere_crawl/cli.rb', line 9 def crawl(keyword) if [:max] == nil TomosiaWallhereCrawl::CrawlImage.new.crawldata(keyword, [:destination], [:max]) else TomosiaWallhereCrawl::CrawlImage.new.crawldata(keyword, [:destination], [:max].to_i) end end |