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.
1794 1795 1796 |
# File 'lib/google/apis/health_v4/classes.rb', line 1794 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
1786 1787 1788 |
# File 'lib/google/apis/health_v4/classes.rb', line 1786 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
1792 1793 1794 |
# File 'lib/google/apis/health_v4/classes.rb', line 1792 def pool_length_millimeters @pool_length_millimeters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1799 1800 1801 1802 |
# File 'lib/google/apis/health_v4/classes.rb', line 1799 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 |