Class: HmtSettings
- Inherits:
-
Object
- Object
- HmtSettings
- Defined in:
- lib/has_many_translations/hmt_settings.rb
Constant Summary collapse
- @@google_api_key =
""
- @@languages =
[]
- @@default_languages =
[]
- @@queue_type =
"resque"
Class Method Summary collapse
- .default_languages ⇒ Object
- .default_languages=(langs) ⇒ Object
- .google_api_key ⇒ Object
- .google_api_key=(key) ⇒ Object
- .languages ⇒ Object
- .languages=(langs) ⇒ Object
- .queue_type ⇒ Object
- .queue_type=(queue) ⇒ Object
Class Method Details
.default_languages ⇒ Object
22 23 24 |
# File 'lib/has_many_translations/hmt_settings.rb', line 22 def self.default_languages @@default_languages end |
.default_languages=(langs) ⇒ Object
19 20 21 |
# File 'lib/has_many_translations/hmt_settings.rb', line 19 def self.default_languages=(langs) @@default_languages = langs end |
.google_api_key ⇒ Object
10 11 12 |
# File 'lib/has_many_translations/hmt_settings.rb', line 10 def self.google_api_key @@google_api_key end |
.google_api_key=(key) ⇒ Object
7 8 9 |
# File 'lib/has_many_translations/hmt_settings.rb', line 7 def self.google_api_key=(key) @@google_api_key = key end |
.languages ⇒ Object
16 17 18 |
# File 'lib/has_many_translations/hmt_settings.rb', line 16 def self.languages @@languages end |
.languages=(langs) ⇒ Object
13 14 15 |
# File 'lib/has_many_translations/hmt_settings.rb', line 13 def self.languages=(langs) @@languages = langs end |
.queue_type ⇒ Object
28 29 30 |
# File 'lib/has_many_translations/hmt_settings.rb', line 28 def self.queue_type @@queue_type end |
.queue_type=(queue) ⇒ Object
25 26 27 |
# File 'lib/has_many_translations/hmt_settings.rb', line 25 def self.queue_type=(queue) @@queue_type = queue end |