class Nokaya::Status
Public Class Methods
album_done()
click to toggle source
# File lib/nokaya/status.rb, line 56 def self.album_done "\nAlbum downloaded.\n\n" end
canceled()
click to toggle source
# File lib/nokaya/status.rb, line 29 def self.canceled "\nCanceled.\n\n" end
done()
click to toggle source
# File lib/nokaya/status.rb, line 35 def self.done "\nDone.\n\n" end
downloading(img_link)
click to toggle source
# File lib/nokaya/status.rb, line 4 def self.downloading img_link "\nDownloading #{img_link}, please wait...\n\n" end
downloading_album()
click to toggle source
# File lib/nokaya/status.rb, line 38 def self.downloading_album "Downloading album, please wait...\n\n" end
error()
click to toggle source
# File lib/nokaya/status.rb, line 26 def self.error "\nAn unknown error happened.\n\n" end
no_access()
click to toggle source
# File lib/nokaya/status.rb, line 59 def self.no_access "Error: can't write the file.\n\n" end
no_can_do()
click to toggle source
# File lib/nokaya/status.rb, line 14 def self.no_can_do "Canceled: unable to get the page contents.\n\n" end
no_cnx()
click to toggle source
# File lib/nokaya/status.rb, line 20 def self.no_cnx "Canceled: connexion error.\n\n" end
no_data()
click to toggle source
# File lib/nokaya/status.rb, line 17 def self.no_data "Canceled: unable to get content.\n\n" end
no_url()
click to toggle source
# File lib/nokaya/status.rb, line 23 def self.no_url "\nYou have to specify a page URL.\n\n" end
resolving(p)
click to toggle source
# File lib/nokaya/status.rb, line 44 def self.resolving p "Resolving #{p}...\n" end
saved(object)
click to toggle source
# File lib/nokaya/status.rb, line 7 def self.saved object object.urls.size > 1 ? im = 'Images' : im = 'Image' "#{im} saved in #{object.path}\n\n" end
saved_album(object)
click to toggle source
# File lib/nokaya/status.rb, line 11 def self.saved_album object "Album saved in #{object.path}\n\n" end
saving(file)
click to toggle source
# File lib/nokaya/status.rb, line 32 def self.saving file "Saving #{file}\n" end
searching()
click to toggle source
# File lib/nokaya/status.rb, line 47 def self.searching "\nSearching infos, please wait...\n\n" end
toresolve(number)
click to toggle source
# File lib/nokaya/status.rb, line 41 def self.toresolve number "\n#{number} links to resolve.\n\n" end
wait()
click to toggle source
# File lib/nokaya/status.rb, line 50 def self.wait "\nScraping the page. Downloads will start automatically. Please wait...\n\n" end
wait_api()
click to toggle source
# File lib/nokaya/status.rb, line 53 def self.wait_api "\nGetting infos from the API. Downloads will start automatically. Please wait...\n\n" end