Class: Google::Apis::HealthV4::ExerciseMetadata
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::ExerciseMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/health_v4/classes.rb,
lib/google/apis/health_v4/representations.rb,
lib/google/apis/health_v4/representations.rb
Overview
Additional exercise metadata.
Instance Attribute Summary collapse
-
#has_gps ⇒ Boolean
(also: #has_gps?)
Optional.
-
#pool_length_millimeters ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExerciseMetadata
constructor
A new instance of ExerciseMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExerciseMetadata
Returns a new instance of ExerciseMetadata.
1760 1761 1762 |
# File 'lib/google/apis/health_v4/classes.rb', line 1760 def initialize(**args) update!(**args) end |
Instance Attribute Details
#has_gps ⇒ Boolean Also known as: has_gps?
Optional. Whether the exercise had GPS tracking.
Corresponds to the JSON property hasGps
1752 1753 1754 |
# File 'lib/google/apis/health_v4/classes.rb', line 1752 def has_gps @has_gps end |
#pool_length_millimeters ⇒ Fixnum
Optional. Pool length in millimeters. Only present in the swimming exercises.
Corresponds to the JSON property poolLengthMillimeters
1758 1759 1760 |
# File 'lib/google/apis/health_v4/classes.rb', line 1758 def pool_length_millimeters @pool_length_millimeters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1765 1766 1767 1768 |
# File 'lib/google/apis/health_v4/classes.rb', line 1765 def update!(**args) @has_gps = args[:has_gps] if args.key?(:has_gps) @pool_length_millimeters = args[:pool_length_millimeters] if args.key?(:pool_length_millimeters) end |