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.



1797
1798
1799
# File 'lib/google/apis/health_v4/classes.rb', line 1797

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)


1789
1790
1791
# File 'lib/google/apis/health_v4/classes.rb', line 1789

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)


1795
1796
1797
# File 'lib/google/apis/health_v4/classes.rb', line 1795

def pool_length_millimeters
  @pool_length_millimeters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1802
1803
1804
1805
# File 'lib/google/apis/health_v4/classes.rb', line 1802

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