Class: Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/locale_setter/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Configuration

Returns a new instance of Configuration.



5
6
7
# File 'lib/locale_setter/configuration.rb', line 5

def initialize(options)
  options.each_pair { |k, v| send(:"#{k}=", v) }
end

Instance Attribute Details

#current_user_methodObject

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_headerObject

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_domainsObject

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_paramObject

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_methodObject

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