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.



2304
2305
2306
# File 'lib/google/apis/health_v4/classes.rb', line 2304

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)


2296
2297
2298
# File 'lib/google/apis/health_v4/classes.rb', line 2296

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)


2302
2303
2304
# File 'lib/google/apis/health_v4/classes.rb', line 2302

def pool_length_millimeters
  @pool_length_millimeters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2309
2310
2311
2312
# File 'lib/google/apis/health_v4/classes.rb', line 2309

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