Class: GeoLocale::Config
- Inherits:
-
Object
- Object
- GeoLocale::Config
- Defined in:
- lib/geo_locale.rb
Instance Attribute Summary collapse
-
#default_country ⇒ Object
Returns the value of attribute default_country.
-
#default_lcid ⇒ Object
Returns the value of attribute default_lcid.
-
#default_locale ⇒ Object
Returns the value of attribute default_locale.
-
#localhost_country ⇒ Object
Returns the value of attribute localhost_country.
-
#overrides ⇒ Object
Returns the value of attribute overrides.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
23 24 25 26 27 28 |
# File 'lib/geo_locale.rb', line 23 def initialize @default_country = "us" @default_locale = "en" @default_lcid = "en-us" @overrides = {} end |
Instance Attribute Details
#default_country ⇒ Object
Returns the value of attribute default_country.
21 22 23 |
# File 'lib/geo_locale.rb', line 21 def default_country @default_country end |
#default_lcid ⇒ Object
Returns the value of attribute default_lcid.
21 22 23 |
# File 'lib/geo_locale.rb', line 21 def default_lcid @default_lcid end |
#default_locale ⇒ Object
Returns the value of attribute default_locale.
21 22 23 |
# File 'lib/geo_locale.rb', line 21 def default_locale @default_locale end |
#localhost_country ⇒ Object
Returns the value of attribute localhost_country.
21 22 23 |
# File 'lib/geo_locale.rb', line 21 def localhost_country @localhost_country end |
#overrides ⇒ Object
Returns the value of attribute overrides.
21 22 23 |
# File 'lib/geo_locale.rb', line 21 def overrides @overrides end |