Class: HmtSettings

Inherits:
Object
  • Object
show all
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

Class Method Details

.default_languagesObject



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_keyObject



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

.languagesObject



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_typeObject



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