module Tiqav

Constants

VERSION

Public Class Methods

feeling_lucky(word) click to toggle source
# File lib/tiqav/search.rb, line 20
def self.feeling_lucky(word)
  Addressable::URI.parse "http://#{word}.tiqav.com/"
end
random() click to toggle source
# File lib/tiqav/search.rb, line 12
def self.random
  loop do
    res = Image.new AlphaNum.encode rand 10000
    return res if res.exists?
    sleep 1
  end
end