Sha256: 61442c76c16d697548908b8ed7427db74d81722bd08d68621642f536776b515d
Contents?: true
Size: 674 Bytes
Versions: 5
Compression:
Stored size: 674 Bytes
Contents
# encoding:utf-8 module Javlibrary def actor_hash client = Javlibrary.client actor_hash = Hash.new client.query("SELECT * FROM actor").each do |item| actor_hash["#{item['actor_name']}"] = item['actor_id'] end client.close actor_hash end def genre_hash client = Javlibrary.client category_hash = Hash.new client.query("SELECT * FROM category").each do |item| category_hash["#{item['category_name']}"] = item['category_id'] end client.close category_hash end module_function :actor_hash, :genre_hash end
Version data entries
5 entries across 5 versions & 1 rubygems