Class: Fitgem::ApiLocale
- Inherits:
-
Object
- Object
- Fitgem::ApiLocale
- Defined in:
- lib/fitgem/locales.rb
Overview
Enumeration of valid locales that can be sent to fitbit
Set the Client#api_locale property to one of these values to set the locale used for all subsequent API calls.
See https://wiki.fitbit.com/display/API/API+Localization for more information on how the various locales are used.
Class Method Summary collapse
-
.AU ⇒ String
Australia Locale.
-
.DE ⇒ String
Germany Locale.
-
.ES ⇒ String
Spain Locale.
-
.FR ⇒ String
France Locale.
-
.JP ⇒ String
Japan Locale.
-
.NZ ⇒ String
New Zealand Locale.
-
.UK ⇒ String
UK Locale.
-
.US ⇒ String
US Locale.
Class Method Details
.AU ⇒ String
Australia Locale
23 24 25 |
# File 'lib/fitgem/locales.rb', line 23 def self.AU "en_AU" end |
.DE ⇒ String
Germany Locale
37 38 39 |
# File 'lib/fitgem/locales.rb', line 37 def self.DE "de_DE" end |
.ES ⇒ String
Spain Locale
58 59 60 |
# File 'lib/fitgem/locales.rb', line 58 def self.ES "es_ES" end |
.FR ⇒ String
France Locale
30 31 32 |
# File 'lib/fitgem/locales.rb', line 30 def self.FR "fr_FR" end |
.JP ⇒ String
Japan Locale
44 45 46 |
# File 'lib/fitgem/locales.rb', line 44 def self.JP "ja_JP" end |
.NZ ⇒ String
New Zealand Locale
51 52 53 |
# File 'lib/fitgem/locales.rb', line 51 def self.NZ "en_NZ" end |
.UK ⇒ String
UK Locale
65 66 67 |
# File 'lib/fitgem/locales.rb', line 65 def self.UK "en_GB" end |
.US ⇒ String
US Locale
Used by default in fitgem
16 17 18 |
# File 'lib/fitgem/locales.rb', line 16 def self.US "en_US" end |