Module: Dumper::Profiles

Defined in:
lib/dumper/profiles.rb,
lib/dumper/profiles/fc2.rb,
lib/dumper/profiles/teca.rb,
lib/dumper/profiles/4chan.rb,
lib/dumper/profiles/booru.rb,
lib/dumper/profiles/fakku.rb,
lib/dumper/profiles/yande.rb,
lib/dumper/profiles/behoimi.rb,
lib/dumper/profiles/mangago.rb,
lib/dumper/profiles/gelbooru.rb,
lib/dumper/profiles/imagebam.rb,
lib/dumper/profiles/mangaeden.rb,
lib/dumper/profiles/mangahere.rb,
lib/dumper/profiles/deviantart.rb,
lib/dumper/profiles/multiplayer.rb,
lib/dumper/profiles/sankakucomplex.rb

Defined Under Namespace

Classes: Behoimi, Booru, DeviantArt, Fakku, Fc2, FourChan, Gelbooru, Imagebam, MangaEden, MangaGo, MangaHere, Multiplayer, SankakuComplex, Teca, YandeRe

Constant Summary collapse

Profile =
Dumper::Profile

Class Method Summary collapse

Class Method Details

.get_4chan(url, path, from = 1, to = -1)) ⇒ Object



37
38
39
40
41
42
# File 'lib/dumper/profiles/4chan.rb', line 37

def get_4chan(url, path, from = 1, to = -1)
  FourChan.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_behoimi(url, path, from = 1, to = 1) ⇒ Object



36
37
38
39
40
41
# File 'lib/dumper/profiles/behoimi.rb', line 36

def get_behoimi(url, path, from = 1, to = 1)
  Behoimi.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_booru(url, path, from = 1, to = 1) ⇒ Object



42
43
44
45
46
47
# File 'lib/dumper/profiles/booru.rb', line 42

def get_booru(url, path, from = 1, to = 1)
  Booru.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_deviantart(url, path, from = 1, to = -1)) ⇒ Object



37
38
39
40
41
42
# File 'lib/dumper/profiles/deviantart.rb', line 37

def get_deviantart(url, path, from = 1, to = -1)
  DeviantArt.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_fakku(url, path, from = 1, to = 999) ⇒ Object



53
54
55
56
57
58
# File 'lib/dumper/profiles/fakku.rb', line 53

def get_fakku(url, path, from = 1, to = 999)
  Fakku.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_fc2(url, path, from = 1, to = -1)) ⇒ Object



37
38
39
40
41
42
# File 'lib/dumper/profiles/fc2.rb', line 37

def get_fc2(url, path, from = 1, to = -1)
  Fc2.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_gelbooru(url, path, from = 1, to = 1) ⇒ Object



42
43
44
45
46
47
# File 'lib/dumper/profiles/gelbooru.rb', line 42

def get_gelbooru(url, path, from = 1, to = 1)
  Gelbooru.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_imagebam(url, path, from = 1, to = -1)) ⇒ Object



43
44
45
46
47
48
# File 'lib/dumper/profiles/imagebam.rb', line 43

def get_imagebam(url, path, from = 1, to = -1)
  Imagebam.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_mangaeden(url, path, from = 1, to = -1)) ⇒ Object



53
54
55
56
57
58
# File 'lib/dumper/profiles/mangaeden.rb', line 53

def get_mangaeden(url, path, from = 1, to = -1)
  MangaEden.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_mangago(url, path, from = 1, to = 1) ⇒ Object



41
42
43
44
45
46
# File 'lib/dumper/profiles/mangago.rb', line 41

def get_mangago(url, path, from = 1, to = 1)
  MangaGo.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_mangahere(url, path, from = 1, to = -1)) ⇒ Object



50
51
52
53
54
55
# File 'lib/dumper/profiles/mangahere.rb', line 50

def get_mangahere(url, path, from = 1, to = -1)
  MangaHere.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_multiplayer(url, path, from = 1, to = -1)) ⇒ Object



43
44
45
46
47
48
# File 'lib/dumper/profiles/multiplayer.rb', line 43

def get_multiplayer(url, path, from = 1, to = -1)
  Multiplayer.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_sankakucomplex(url, path, from = 1, to = -1)) ⇒ Object



74
75
76
77
78
79
# File 'lib/dumper/profiles/sankakucomplex.rb', line 74

def get_sankakucomplex(url, path, from = 1, to = -1)
  SankakuComplex.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_teca(url, path, from = 1, to = -1)) ⇒ Object



42
43
44
45
46
47
# File 'lib/dumper/profiles/teca.rb', line 42

def get_teca(url, path, from = 1, to = -1)
  Teca.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.get_yande(url, path, from = 1, to = 1) ⇒ Object



42
43
44
45
46
47
# File 'lib/dumper/profiles/yande.rb', line 42

def get_yande(url, path, from = 1, to = 1)
  YandeRe.new { |p|
    p.dump     url, path, from, to
    p.shutdown
  }
end

.info_4chanObject



44
45
46
# File 'lib/dumper/profiles/4chan.rb', line 44

def info_4chan
  { from: :enabled, to: :enabled, type: :images }
end

.info_behoimiObject



43
44
45
# File 'lib/dumper/profiles/behoimi.rb', line 43

def info_behoimi
  { from: :enabled, to: :enabled, type: :images }
end

.info_booruObject



49
50
51
# File 'lib/dumper/profiles/booru.rb', line 49

def info_booru
  { from: :enabled, to: :enabled, type: :pages }
end

.info_deviantartObject



44
45
46
# File 'lib/dumper/profiles/deviantart.rb', line 44

def info_deviantart
  { from: :enabled, to: :enabled, type: :images }
end

.info_fakkuObject



60
61
62
# File 'lib/dumper/profiles/fakku.rb', line 60

def info_fakku
  { from: :enabled, to: :enabled, type: :images }
end

.info_fc2Object



44
45
46
# File 'lib/dumper/profiles/fc2.rb', line 44

def info_fc2
  { from: :enabled, to: :enabled, type: :images }
end

.info_gelbooruObject



49
50
51
# File 'lib/dumper/profiles/gelbooru.rb', line 49

def info_gelbooru
  { from: :enabled, to: :enabled, type: :pages }
end

.info_imagebamObject



50
51
52
# File 'lib/dumper/profiles/imagebam.rb', line 50

def info_imagebam
  { from: :enabled, to: :enabled, type: :images }
end

.info_mangaedenObject



60
61
62
# File 'lib/dumper/profiles/mangaeden.rb', line 60

def info_mangaeden
  { from: :enabled, to: :enabled, type: :chapters }
end

.info_mangagoObject



48
49
50
# File 'lib/dumper/profiles/mangago.rb', line 48

def info_mangago
  { from: :enabled, to: :enabled, type: :images }
end

.info_mangahereObject



57
58
59
# File 'lib/dumper/profiles/mangahere.rb', line 57

def info_mangahere
  { from: :enabled, to: :enabled, type: :chapters }
end

.info_multiplayerObject



50
51
52
# File 'lib/dumper/profiles/multiplayer.rb', line 50

def info_multiplayer
  { from: :enabled, to: :enabled, type: :images }
end

.info_sankakucomplexObject



81
82
83
# File 'lib/dumper/profiles/sankakucomplex.rb', line 81

def info_sankakucomplex
  { from: :enabled, to: :enabled, type: :images }
end

.info_tecaObject



49
50
51
# File 'lib/dumper/profiles/teca.rb', line 49

def info_teca
  { from: :enabled, to: :enabled, type: :images }
end

.info_yandeObject



49
50
51
# File 'lib/dumper/profiles/yande.rb', line 49

def info_yande
  { from: :enabled, to: :enabled, type: :pages }
end