Class: Mr2cbz::Task
- Inherits:
-
Thor
- Object
- Thor
- Mr2cbz::Task
- Defined in:
- lib/mr2cbz/task.rb
Instance Method Summary collapse
Instance Method Details
#get(manga, from, to = from) ⇒ Object
16 17 18 19 |
# File 'lib/mr2cbz/task.rb', line 16 def get(manga, from, to=from) m = Manga.new(manga) m.download(from.to_i, to.to_i, [:keep_temp]) end |
#list ⇒ Object
7 8 9 |
# File 'lib/mr2cbz/task.rb', line 7 def list Manga.list { |title, completed| puts "#{title} #{'[completed]' if completed}" } end |