Sha256: f6404a368df58466a6156c4fde07f3289a0b9acb17e25961acad39cbe7570993
Contents?: true
Size: 789 Bytes
Versions: 1
Compression:
Stored size: 789 Bytes
Contents
module NBS $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib','config')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'yaml' require 'hash_extension' require 'search' require 'artist' require 'artist_profile' require 'metric' require 'datapoint' puts "#{File.dirname(__FILE__)}/config.yml" NBS_CONFIG = YAML.load_file("#{File.dirname(__FILE__)}/config.yml") class Base def initialize(api_key) $nbs_api_key = api_key end # return a search object that you can manipulate # if you prefer to just use the xml simply type to_xml # this method with actually fetch the result def search(query, options={} ) search = Search.new(query,options) search.fetch return search end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
next-big-sound-0.3.4 | lib/next-big-sound.rb |