Sha256: 7f38f9f47e4dcc41b7f8bff2d704344e7c84eff9a26780694d5814f83623f641

Contents?: true

Size: 704 Bytes

Versions: 2

Compression:

Stored size: 704 Bytes

Contents

# encoding: utf-8
module Nokaya
  class Status
    def self.downloading img_link
      "\nDownloading #{img_link}, please wait...\n\n"
    end
    def self.saved path
      "Image saved in #{path}\n\n"
    end
    def self.no_can_do
      "Canceled: unable to get the page contents.\n\n"
    end
    def self.no_url
      "\nYou have to specify a page URL.\n\n"
    end
    def self.error
      "\nAn unknown error happened.\n\n"
    end
    def self.canceled
      "\nCanceled.\n\n"
    end
    def self.saving file
      "Saving #{file}\n"
    end
    def self.done
      "\nDone.\n\n"
    end
    def self.downloading_album nokaya
      "\nDownloading album at #{nokaya.url}...\n\n"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nokaya-0.0.6 lib/nokaya/status.rb
nokaya-0.0.5 lib/nokaya/status.rb