Module: Yatapp
- Extended by:
- Configuration
- Defined in:
- lib/yatapp.rb,
lib/yatapp/store.rb,
lib/yatapp/railtie.rb,
lib/yatapp/version.rb,
lib/yatapp/configuration.rb,
lib/yatapp/yata_api_caller.rb
Defined Under Namespace
Modules: Configuration
Classes: Railtie, Store, YataApiCaller
Constant Summary
collapse
- VERSION =
"0.5.5"
Configuration::CONFIGURATION_OPTIONS
Class Method Summary
collapse
configure, options
Class Method Details
.api_caller ⇒ Object
26
27
28
|
# File 'lib/yatapp.rb', line 26
def api_caller
@api_caller ||= YataApiCaller.new
end
|
.download_translations ⇒ Object
16
17
18
19
20
|
# File 'lib/yatapp.rb', line 16
def download_translations
if download_on_start
api_caller.download_translations_and_store
end
end
|
.get_translations ⇒ Object
12
13
14
|
# File 'lib/yatapp.rb', line 12
def get_translations
api_caller.get_translations
end
|
.start_websocket ⇒ Object
22
23
24
|
# File 'lib/yatapp.rb', line 22
def start_websocket
Phoenix::Socket.new unless File.basename($0) == 'rake'
end
|