module FreebaseImporters
Constants
- VERSION
Public Class Methods
api_key()
click to toggle source
# File lib/freebase_importers.rb, line 18 def self.api_key ENV['GOOGLE_SIMPLE_API_ACCESS'] || missing_api_key_error! end
debug!()
click to toggle source
# File lib/freebase_importers.rb, line 9 def self.debug! ENV['FREEBASE_IMPORTS_DEBUG'] = 'true' end
missing_api_key_error!()
click to toggle source
# File lib/freebase_importers.rb, line 22 def self.missing_api_key_error! puts puts "Create a GOOGLE_SIMPLE_API_ACCESS environment vairable (maybe use gem dotenv)." puts "Follow these instructions to get a Freebase api key: http://wiki.freebase.com/wiki/How_to_obtain_an_API_key" puts raise "No api key." end