Class: Magnifier::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/magnifier.rb

Class Method Summary collapse

Class Method Details

.api_keyObject



15
16
17
18
19
20
21
# File 'lib/magnifier.rb', line 15

def self.api_key
	begin
		YAML::load(File.open("config/magnifier_options.yml"))['magnifier_options']['api_key']
	rescue
		# puts ""
	end
end

.siteObject



7
8
9
10
11
12
13
# File 'lib/magnifier.rb', line 7

def self.site
	begin
		YAML::load(File.open("config/magnifier_options.yml"))['magnifier_options']['site']
	rescue

	end
end