Class: ZhSieve::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/zhSieve/cli.rb

Instance Method Summary collapse

Instance Method Details

#answerObject



14
15
16
# File 'lib/zhSieve/cli.rb', line 14

def answer
	puts ZhSieve.crawl_answer(question_id:options[:q],answer_id:options[:a])
end

#articleObject



20
21
22
# File 'lib/zhSieve/cli.rb', line 20

def article
  puts ZhSieve.crawl_zl_article(article_id:options[:z])
end

#versionObject



7
8
9
# File 'lib/zhSieve/cli.rb', line 7

def version
	puts ZhSieve::VERSION
end