Class: Fitgem::ApiUnitSystem
- Inherits:
-
Object
- Object
- Fitgem::ApiUnitSystem
- 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
-
.METRIC ⇒ String
Metric Units.
-
.UK ⇒ String
UK Units.
-
.US ⇒ String
US Units.
Class Method Details
.METRIC ⇒ String
Metric Units
30 31 32 |
# File 'lib/fitgem/units.rb', line 30 def self.METRIC "" end |
.UK ⇒ String
UK Units
23 24 25 |
# File 'lib/fitgem/units.rb', line 23 def self.UK "en_GB" end |
.US ⇒ String
US Units
Used by default in fitgem
16 17 18 |
# File 'lib/fitgem/units.rb', line 16 def self.US "en_US" end |