1
0
Fork 0

Vk parser basic structure

This commit is contained in:
magnolia-fan 2011-04-09 03:41:26 +04:00
parent 9cbc3d1400
commit 3215a40e0f
3 changed files with 20 additions and 2 deletions

View File

@ -2,7 +2,7 @@ class TrackController < ApplicationController
require 'net/http'
require 'uri'
def listen
pp VK_ACCOUNTS
render :json => YAML.load_file("#{RAILS_ROOT}/config/vk_accounts.yml")
end
private

View File

@ -0,0 +1,19 @@
module Vkontakte
@@accounts = YAML.load_file("#{RAILS_ROOT}/config/vk_accounts.yml")
def get artist, track, length
end
def getHtml q
end
def parseHtml html
end
def calcWeight files
end
end

View File

@ -1 +0,0 @@
VK_ACCOUNTS = YAML.load_file("#{RAILS_ROOT}/config/vk_accounts.yml")[RAILS_ENV]