Class: Configuration
- Inherits:
-
Object
- Object
- Configuration
- Defined in:
- lib/locale_setter/configuration.rb
Instance Attribute Summary collapse
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#http_header ⇒ Object
Returns the value of attribute http_header.
-
#localized_domains ⇒ Object
Returns the value of attribute localized_domains.
-
#url_param ⇒ Object
Returns the value of attribute url_param.
-
#user_locale_method ⇒ Object
Returns the value of attribute user_locale_method.
Instance Method Summary collapse
-
#initialize(options) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/locale_setter/configuration.rb', line 5 def initialize() .each_pair { |k, v| send(:"#{k}=", v) } end |
Instance Attribute Details
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
2 3 4 |
# File 'lib/locale_setter/configuration.rb', line 2 def current_user_method @current_user_method end |
#http_header ⇒ Object
Returns the value of attribute http_header.
2 3 4 |
# File 'lib/locale_setter/configuration.rb', line 2 def http_header @http_header end |
#localized_domains ⇒ Object
Returns the value of attribute localized_domains.
2 3 4 |
# File 'lib/locale_setter/configuration.rb', line 2 def localized_domains @localized_domains end |
#url_param ⇒ Object
Returns the value of attribute url_param.
2 3 4 |
# File 'lib/locale_setter/configuration.rb', line 2 def url_param @url_param end |
#user_locale_method ⇒ Object
Returns the value of attribute user_locale_method.
2 3 4 |
# File 'lib/locale_setter/configuration.rb', line 2 def user_locale_method @user_locale_method end |