class RandomYiff::Cli

Public Instance Methods

download() click to toggle source
# File lib/random_yiff/cli.rb, line 21
def download
  RandomYiff::E621.new do |yiff|
    path = File.join(options[:path], yiff.file_name)
    File.write(path, yiff.file)
  end
end
open() click to toggle source
# File lib/random_yiff/cli.rb, line 8
def open
  RandomYiff::E621.new do |yiff|
    Launchy.open(yiff.file_url)
  end
end