Class: Google::Apis::HealthV4::ExerciseMetadata

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

Instance Method Summary collapse

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_gpsBoolean Also known as: has_gps?

Optional. Whether the exercise had GPS tracking. Corresponds to the JSON property hasGps

Returns:

  • (Boolean)


1752
1753
1754
# File 'lib/google/apis/health_v4/classes.rb', line 1752

def has_gps
  @has_gps
end

#pool_length_millimetersFixnum

Optional. Pool length in millimeters. Only present in the swimming exercises. Corresponds to the JSON property poolLengthMillimeters

Returns:

  • (Fixnum)


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