Class: LocaliseRails::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/localise_rails/config.rb

Overview

Class used to initialize configuration object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_keyObject

Returns the value of attribute api_key.



4
5
6
# File 'lib/localise_rails/config.rb', line 4

def api_key
  @api_key
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/localise_rails/config.rb', line 4

def options
  @options
end

#prefixObject

Returns the value of attribute prefix.



4
5
6
# File 'lib/localise_rails/config.rb', line 4

def prefix
  @prefix
end

#redisObject

Returns the value of attribute redis.



4
5
6
# File 'lib/localise_rails/config.rb', line 4

def redis
  @redis
end

#redis_optionsObject

Returns the value of attribute redis_options.



4
5
6
# File 'lib/localise_rails/config.rb', line 4

def redis_options
  @redis_options
end

#rename_localesObject

Returns the value of attribute rename_locales.



4
5
6
# File 'lib/localise_rails/config.rb', line 4

def rename_locales
  @rename_locales
end