Class: LocaliseRails::Config
- Inherits:
-
Object
- Object
- LocaliseRails::Config
- Defined in:
- lib/localise_rails/config.rb
Overview
Class used to initialize configuration object.
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#options ⇒ Object
Returns the value of attribute options.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#redis_options ⇒ Object
Returns the value of attribute redis_options.
-
#rename_locales ⇒ Object
Returns the value of attribute rename_locales.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 9 10 11 |
# File 'lib/localise_rails/config.rb', line 6 def initialize @options = {} @rename_locales = {} @redis_options = {} @prefix = nil end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/localise_rails/config.rb', line 4 def api_key @api_key end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/localise_rails/config.rb', line 4 def @options end |
#prefix ⇒ Object
Returns the value of attribute prefix.
4 5 6 |
# File 'lib/localise_rails/config.rb', line 4 def prefix @prefix end |
#redis ⇒ Object
Returns the value of attribute redis.
4 5 6 |
# File 'lib/localise_rails/config.rb', line 4 def redis @redis end |
#redis_options ⇒ Object
Returns the value of attribute redis_options.
4 5 6 |
# File 'lib/localise_rails/config.rb', line 4 def @redis_options end |
#rename_locales ⇒ Object
Returns the value of attribute rename_locales.
4 5 6 |
# File 'lib/localise_rails/config.rb', line 4 def rename_locales @rename_locales end |