Class: Fitgem::ApiUnitSystem

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

Overview

Enumeration of valid unit systems that can be sent to fitbit

Set the Client#api_unit_system property to one of these values to set the unit system used for all subsequent API calls.

See https://wiki.fitbit.com/display/API/API-Unit-System for more information on how the various unit systems are used.

Class Method Summary collapse

Class Method Details

.METRICString

Metric Units

Returns:

  • (String)

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

def self.METRIC
  ""
end

.UKString

UK Units

Returns:

  • (String)

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

def self.UK
  "en_GB"
end

.USString

US Units

Used by default in fitgem

Returns:

  • (String)

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

def self.US
  "en_US"
end