Class: Magnifier::Settings
- Inherits:
-
Object
- Object
- Magnifier::Settings
- Defined in:
- lib/magnifier.rb
Class Method Summary collapse
Class Method Details
.api_key ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/magnifier.rb', line 20 def self.api_key begin ['magnifier_options'][Rails.env]['api_key'] rescue end end |
.options ⇒ Object
8 9 10 |
# File 'lib/magnifier.rb', line 8 def self. YAML::load(File.open("config/magnifier_options.yml")) end |
.site ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/magnifier.rb', line 12 def self.site begin ['magnifier_options'][Rails.env]['site'] rescue end end |