Class: GeoLocale::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_countryObject

Returns the value of attribute default_country.



21
22
23
# File 'lib/geo_locale.rb', line 21

def default_country
  @default_country
end

#default_lcidObject

Returns the value of attribute default_lcid.



21
22
23
# File 'lib/geo_locale.rb', line 21

def default_lcid
  @default_lcid
end

#default_localeObject

Returns the value of attribute default_locale.



21
22
23
# File 'lib/geo_locale.rb', line 21

def default_locale
  @default_locale
end

#localhost_countryObject

Returns the value of attribute localhost_country.



21
22
23
# File 'lib/geo_locale.rb', line 21

def localhost_country
  @localhost_country
end

#overridesObject

Returns the value of attribute overrides.



21
22
23
# File 'lib/geo_locale.rb', line 21

def overrides
  @overrides
end