Class: Fitgem::ApiLocale

Inherits:
Object
  • Object
show all
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

Class Method Details

.AUString

Australia Locale

Returns:

  • (String)


23
24
25
# File 'lib/fitgem/locales.rb', line 23

def self.AU
  "en_AU"
end

.DEString

Germany Locale

Returns:

  • (String)


37
38
39
# File 'lib/fitgem/locales.rb', line 37

def self.DE
  "de_DE"
end

.ESString

Spain Locale

Returns:

  • (String)


58
59
60
# File 'lib/fitgem/locales.rb', line 58

def self.ES
  "es_ES"
end

.FRString

France Locale

Returns:

  • (String)


30
31
32
# File 'lib/fitgem/locales.rb', line 30

def self.FR
  "fr_FR"
end

.JPString

Japan Locale

Returns:

  • (String)


44
45
46
# File 'lib/fitgem/locales.rb', line 44

def self.JP
  "ja_JP"
end

.NZString

New Zealand Locale

Returns:

  • (String)


51
52
53
# File 'lib/fitgem/locales.rb', line 51

def self.NZ
  "en_NZ"
end

.UKString

UK Locale

Returns:

  • (String)


65
66
67
# File 'lib/fitgem/locales.rb', line 65

def self.UK
  "en_GB"
end

.USString

US Locale

Used by default in fitgem

Returns:

  • (String)


16
17
18
# File 'lib/fitgem/locales.rb', line 16

def self.US
  "en_US"
end